MultiDragPointerState constructor
- Offset initialPosition,
- PointerDeviceKind kind,
- 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,
);
}
}