reorderUpdate method

void reorderUpdate(
  1. double dx,
  2. double dy
)

Implementation

void reorderUpdate(double dx, double dy) {
  if (!isReordering) return;

  _reorderLayoutData!.update(constraints, dx, dy);

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

  final delegate = childManager.widget.delegate;
  final newSlot = delegate.reorderModel?.onReorderFeedback.call(
      pickedListIndex,
      dropListIndex,
      _reorderLayoutData!.currentMainAxisOffset,
      _reorderLayoutData!.crossAxisDelta,
      _reorderLayoutData!.mainAxisLocalOffset);

  intervalManager.reorderUpdateSlot(newSlot);

  markSafeNeedsLayout();
}