MultiDragPointerState constructor

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

Creates per-pointer state for a MultiDragGestureRecognizer.

Implementation

MultiDragPointerState(this.initialPosition, this.kind, this.gestureSettings)
  : _velocityTracker = VelocityTracker.withKind(kind) {
  // TODO(polina-c): stop duplicating code across disposables
  // https://github.com/flutter/flutter/issues/137435
  if (kFlutterMemoryAllocationsEnabled) {
    FlutterMemoryAllocations.instance.dispatchObjectCreated(
      library: 'package:flutter/gestures.dart',
      className: '$MultiDragPointerState',
      object: this,
    );
  }
}