SingleDragDelayedGestureRecognizer constructor

SingleDragDelayedGestureRecognizer({
  1. required Duration beginDuration,
  2. required Duration? duration,
  3. Object? debugOwner,
  4. Set<PointerDeviceKind>? supportedDevices,
  5. double? postAcceptSlopTolerance = null,
})

Implementation

SingleDragDelayedGestureRecognizer({
  required this.beginDuration,
  required super.duration,
  super.debugOwner,
  super.supportedDevices,
  super.postAcceptSlopTolerance,
}) {
  assert(beginDuration < super.deadline!);
  onLongPressDown = _onLongPressDown;
  onLongPressStart = _onLongPressStart;
  onLongPressMoveUpdate = _onLongPressMoveUpdate;
  onLongPressEnd = _onLongPressEnd;
  onLongPressCancel = _onLongPressCancel;
}