TextSelectionGestureDetector constructor Null safety

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

Create a TextSelectionGestureDetector.

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

Implementation

const TextSelectionGestureDetector({
  super.key,
  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,
  required this.child,
}) : assert(child != null);