DragGestureRecognizer constructor
- Object? debugOwner,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- MultitouchDragStrategy multitouchDragStrategy = MultitouchDragStrategy.latestPointer,
- GestureVelocityTrackerBuilder velocityTrackerBuilder = _defaultBuilder,
- bool onlyAcceptDragOnThreshold = false,
- Set<
PointerDeviceKind> ? supportedDevices, - AllowedButtonsFilter allowedButtonsFilter = _defaultButtonAcceptBehavior,
Initialize the object.
It's possible to limit this recognizer to a specific set of PointerDeviceKinds by providing the optional supportedDevices argument. If supportedDevices is null, the recognizer will accept pointer events from all device kinds.
Implementation
DragGestureRecognizer({
super.debugOwner,
this.dragStartBehavior = DragStartBehavior.start,
this.multitouchDragStrategy = MultitouchDragStrategy.latestPointer,
this.velocityTrackerBuilder = _defaultBuilder,
this.onlyAcceptDragOnThreshold = false,
super.supportedDevices,
super.allowedButtonsFilter = _defaultButtonAcceptBehavior,
});