DragGestureRecognizer constructor

DragGestureRecognizer({
  1. Object? debugOwner,
  2. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  3. MultitouchDragStrategy multitouchDragStrategy = MultitouchDragStrategy.latestPointer,
  4. GestureVelocityTrackerBuilder velocityTrackerBuilder = _defaultBuilder,
  5. bool onlyAcceptDragOnThreshold = false,
  6. Set<PointerDeviceKind>? supportedDevices,
  7. 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,
});