beginDrag method

void beginDrag(
  1. dynamic dragStartDetails
)

Implementation

void beginDrag(dynamic dragStartDetails) {
  if (!canMove) return;
  if (animationController.isAnimating) return;

  if (_debugLevel > 0) print("BeginDrag");

  checkViewAndBound();

  delta = deltaNotifier.value;
  beginDragPosition = dragStartDetails.localPosition;

  if (onDragStart != null) onDragStart!(dragStartDetails);
}