ItemDragStartCallback typedef

ItemDragStartCallback = void Function(DragStartDetails details, int index)

A callback function that is called when dragging of an item starts.

The index parameter of the callback is the index of the dragged item. Note: If the item is reordered, the index will be updated accordingly.

Implementation

typedef ItemDragStartCallback = void Function(
    DragStartDetails details, int index);