SwipeGestureRecognizer constructor

SwipeGestureRecognizer({
  1. Object? debugOwner,
  2. Set<PointerDeviceKind>? supportedDevices,
  3. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  4. GestureVelocityTrackerBuilder velocityTrackerBuilder = _defaultBuilder,
  5. GestureSwipeCallback? onSwipe,
})

Initialize the object.

dragStartBehavior must not be null.

Implementation

SwipeGestureRecognizer({
  Object? debugOwner,
  Set<PointerDeviceKind>? supportedDevices,
  this.dragStartBehavior = DragStartBehavior.start,
  this.velocityTrackerBuilder = _defaultBuilder,
  this.onSwipe,
}) : super(debugOwner: debugOwner, supportedDevices: supportedDevices);