TextSelectionGestureDetectorModifier constructor

const TextSelectionGestureDetectorModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. GestureTapDownCallback? onTapDown,
  5. GestureForcePressStartCallback? onForcePressStart,
  6. GestureForcePressEndCallback? onForcePressEnd,
  7. GestureTapCallback? onSecondaryTap,
  8. GestureTapDownCallback? onSecondaryTapDown,
  9. GestureTapUpCallback? onSingleTapUp,
  10. GestureTapCancelCallback? onSingleTapCancel,
  11. GestureLongPressStartCallback? onSingleLongTapStart,
  12. GestureLongPressMoveUpdateCallback? onSingleLongTapMoveUpdate,
  13. GestureLongPressEndCallback? onSingleLongTapEnd,
  14. GestureTapDownCallback? onDoubleTapDown,
  15. GestureDragStartCallback? onDragSelectionStart,
  16. dynamic onDragSelectionUpdate,
  17. GestureDragEndCallback? onDragSelectionEnd,
  18. HitTestBehavior? behavior,
})

Create a TextSelectionGestureDetector.

Multiple callbacks can be called for one sequence of input gesture. The child parameter must not be null.

Implementation

const TextSelectionGestureDetectorModifier({
  super.key,
  super.modifierKey,
  super.child,
  this.onTapDown,
  this.onForcePressStart,
  this.onForcePressEnd,
  this.onSecondaryTap,
  this.onSecondaryTapDown,
  this.onSingleTapUp,
  this.onSingleTapCancel,
  this.onSingleLongTapStart,
  this.onSingleLongTapMoveUpdate,
  this.onSingleLongTapEnd,
  this.onDoubleTapDown,
  this.onDragSelectionStart,
  this.onDragSelectionUpdate,
  this.onDragSelectionEnd,
  this.behavior,
});