startItemDragReorder method Null safety
- {required int index,
- required PointerDownEvent event,
- required MultiDragGestureRecognizer recognizer}
Initiate the dragging of the item at index
that was started with
the pointer down event
.
The given recognizer
will be used to recognize and start the drag
item tracking and lead to either an item reorder, or a cancelled drag.
The list will take ownership of the returned recognizer and will dispose
it when it is no longer needed.
Most applications will not use this directly, but will wrap the item (or part of the item, like a drag handle) in either a ReorderableDragStartListener or ReorderableDelayedDragStartListener which call this for the application.
Implementation
void startItemDragReorder({
required int index,
required PointerDownEvent event,
required MultiDragGestureRecognizer recognizer,
}) {
_sliverReorderableListKey.currentState!.startItemDragReorder(index: index, event: event, recognizer: recognizer);
}