reorderStop method

void reorderStop(
  1. bool cancel
)

Implementation

void reorderStop(bool cancel) {
  if (!isReordering) return null;

  final pickedListIndex = _reorderLayoutData!.pickedListIndex;
  final dropListIndex = _reorderLayoutData!.dropListIndex;

  final delegate = childManager.widget.delegate;
  cancel = cancel ||
      !(delegate.reorderModel?.onReorderComplete.call(
              pickedListIndex, dropListIndex, _reorderLayoutData!.slot) ??
          false);

  intervalManager.reorderStop(cancel);

  markSafeNeedsLayout();

  _reorderLayoutData = null;
}