beginPointer method

void beginPointer(
  1. double y,
  2. double x,
  3. double sheetPosition,
  4. PointerDeviceKind kind,
)

Called when a pointer-down event lands in the sheet's content area.

Implementation

void beginPointer(
    double y, double x, double sheetPosition, PointerDeviceKind kind) {
  phase = GesturePhase.idle;
  dragStartY = y;
  lastMoveY = y;
  dragStartX = x;
  dragStartSheetPosition = sheetPosition;
  isVerticalGesture = false;
  velocityTracker = VelocityTracker.withKind(kind);
}