Skip to content

OnReorderEvent

Inherits: Event['ReorderableListView']

Payload for ReorderableListView events related to item reordering.

Properties

  • new_index(int | None) –

    The new position of the item after the reordering, if available.

  • old_index(int | None) –

    The previous position of the item before the reordering, if available.

Properties#

new_index class-attribute instance-attribute #

new_index: int | None = None

The new position of the item after the reordering, if available.

Will be non-None only for the following events: ReorderableListView.on_reorder, ReorderableListView.on_reorder_end.

old_index class-attribute instance-attribute #

old_index: int | None = None

The previous position of the item before the reordering, if available.

Will be non-None only for the following events: ReorderableListView.on_reorder, ReorderableListView.on_reorder_start.