Skip to main content

OnReorderEvent

Payload for ReorderableListView events related to item reordering.

Inherits: Event

Properties

  • new_index - The new position of the item after the reordering, if available.
  • old_index - The previous position of the item before the reordering, if available.

Properties

new_indexclass-attributeinstance-attribute

new_index: Optional[int] = None

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

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

old_indexclass-attributeinstance-attribute

old_index: Optional[int] = None

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

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