TextSelectionGestureDetector constructor Null safety
- {Key? key,
- GestureTapDownCallback? onTapDown,
- GestureForcePressStartCallback? onForcePressStart,
- GestureForcePressEndCallback? onForcePressEnd,
- GestureTapCallback? onSecondaryTap,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSingleTapUp,
- GestureTapCancelCallback? onSingleTapCancel,
- GestureLongPressStartCallback? onSingleLongTapStart,
- GestureLongPressMoveUpdateCallback? onSingleLongTapMoveUpdate,
- GestureLongPressEndCallback? onSingleLongTapEnd,
- GestureTapDownCallback? onDoubleTapDown,
- GestureDragStartCallback? onDragSelectionStart,
- DragSelectionUpdateCallback? onDragSelectionUpdate,
- GestureDragEndCallback? onDragSelectionEnd,
- HitTestBehavior? behavior,
- 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);