MultiDragPointerState constructor Null safety

MultiDragPointerState(
  1. Offset initialPosition,
  2. PointerDeviceKind kind,
  3. DeviceGestureSettings? gestureSettings
)

Creates per-pointer state for a MultiDragGestureRecognizer.

The initialPosition argument must not be null.

Implementation

MultiDragPointerState(this.initialPosition, this.kind, this.gestureSettings)
  : assert(initialPosition != null),
    _velocityTracker = VelocityTracker.withKind(kind);