How reorderable widgets work
masterThe reorderables package provides various widgets (such as ReorderableTable, ReorderableRow, ReorderableColumn, ReorderableWrap, and ReorderableSliverList) that enable drag-and-drop reordering of their children.
To implement reordering, the parent widget must provide an onReorder callback function. This function is invoked whenever a child is moved, providing the old index and the new index of the reordered child.