cancelReorder method

void cancelReorder()

Cancel any item drag in progress.

This should be called before any major changes to the item list occur so that any item drags will not get confused by changes to the underlying list.

If no drag is active, this will do nothing.

Implementation

void cancelReorder() {
  _sliverReorderableListKey.currentState!.cancelReorder();
}