TextSelectionGestureDetector constructor

const TextSelectionGestureDetector(
  1. {Key? key,
  2. VoidCallback? onTapTrackStart,
  3. VoidCallback? onTapTrackReset,
  4. GestureTapDragDownCallback? onTapDown,
  5. GestureForcePressStartCallback? onForcePressStart,
  6. GestureForcePressEndCallback? onForcePressEnd,
  7. GestureTapCallback? onSecondaryTap,
  8. GestureTapDownCallback? onSecondaryTapDown,
  9. GestureTapDragUpCallback? onSingleTapUp,
  10. GestureCancelCallback? onSingleTapCancel,
  11. GestureTapCallback? onUserTap,
  12. GestureLongPressStartCallback? onSingleLongTapStart,
  13. GestureLongPressMoveUpdateCallback? onSingleLongTapMoveUpdate,
  14. GestureLongPressEndCallback? onSingleLongTapEnd,
  15. GestureTapDragDownCallback? onDoubleTapDown,
  16. GestureTapDragDownCallback? onTripleTapDown,
  17. GestureTapDragStartCallback? onDragSelectionStart,
  18. GestureTapDragUpdateCallback? onDragSelectionUpdate,
  19. GestureTapDragEndCallback? onDragSelectionEnd,
  20. bool onUserTapAlwaysCalled = false,
  21. HitTestBehavior? behavior,
  22. required Widget child}
)

Create a TextSelectionGestureDetector.

Multiple callbacks can be called for one sequence of input gesture.

Implementation

const TextSelectionGestureDetector({
  super.key,
  this.onTapTrackStart,
  this.onTapTrackReset,
  this.onTapDown,
  this.onForcePressStart,
  this.onForcePressEnd,
  this.onSecondaryTap,
  this.onSecondaryTapDown,
  this.onSingleTapUp,
  this.onSingleTapCancel,
  this.onUserTap,
  this.onSingleLongTapStart,
  this.onSingleLongTapMoveUpdate,
  this.onSingleLongTapEnd,
  this.onDoubleTapDown,
  this.onTripleTapDown,
  this.onDragSelectionStart,
  this.onDragSelectionUpdate,
  this.onDragSelectionEnd,
  this.onUserTapAlwaysCalled = false,
  this.behavior,
  required this.child,
});