notifyStartReorder method

bool notifyStartReorder(
  1. BuildContext context,
  2. double dx,
  3. double dy
)

Notifies the AnimatedListView that a new reoder has begun. The context has to be provided to help AnimatedListView to locate the item to be picked up for reordering. The attributs dx and dy are the coordinates relative to the position of the item.

Use this method only if you have decided not to use the AnimatedSliverChildBuilderDelegate.addLongPressReorderable attribute or the LongPressReorderable widget (for example if you want to reorder using your custom drag handles).

This method could return false indicating that the reordering cannot be started.

Implementation

bool notifyStartReorder(BuildContext context, double dx, double dy) {
  assert(_debugAssertBinded());
  return _interface!.notifyStartReorder(context, dx, dy);
}