ExtendedTextSelectionGestureDetectorBuilder class Null safety

Builds a TextSelectionGestureDetector to wrap an EditableText.

The class implements sensible defaults for many user interactions with an EditableText (see the documentation of the various gesture handler methods, e.g. onTapDown, onFrocePress, etc.). Subclasses of EditableTextSelectionHandlesProvider can change the behavior performed in responds to these gesture events by overriding the corresponding handler methods of this class.

The resulting TextSelectionGestureDetector to wrap an EditableText is obtained by calling buildGestureDetector.

See also:

Implementers

Constructors

ExtendedTextSelectionGestureDetectorBuilder({required ExtendedTextSelectionGestureDetectorBuilderDelegate delegate, required Function showToolbar, required Function hideToolbar})
Creates a ExtendedTextSelectionGestureDetectorBuilder. [...]

Properties

delegate ExtendedTextSelectionGestureDetectorBuilderDelegate
The delegate for this ExtendedTextSelectionGestureDetectorBuilder. [...]
@protected, final
hashCode int
The hash code for this object. [...]
read-only, inherited
hideToolbar Function
final
renderEditable ExtendedTextSelectionRenderObject
The RenderObject of the EditableText for which the builder will provide a TextSelectionGestureDetector.
@protected, read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shouldShowSelectionToolbar bool
Whether to show the selection toolbar. [...]
read-only
showToolbar Function
final

Methods

buildGestureDetector({Key? key, HitTestBehavior? behavior, required Widget child}) Widget
Returns a TextSelectionGestureDetector configured with the handlers provided by this builder. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDoubleTapDown(TapDownDetails details) → void
Handler for TextSelectionGestureDetector.onDoubleTapDown. [...]
onDragSelectionEnd(DragEndDetails details) → void
Handler for TextSelectionGestureDetector.onDragSelectionEnd. [...]
onDragSelectionStart(DragStartDetails details) → void
Handler for TextSelectionGestureDetector.onDragSelectionStart. [...]
onDragSelectionUpdate(DragStartDetails startDetails, DragUpdateDetails updateDetails) → void
Handler for TextSelectionGestureDetector.onDragSelectionUpdate. [...]
onForcePressEnd(ForcePressDetails details) → void
Handler for TextSelectionGestureDetector.onForcePressEnd. [...]
onForcePressStart(ForcePressDetails details) → void
Handler for TextSelectionGestureDetector.onForcePressStart. [...]
onSecondaryTap() → void
Handler for TextSelectionGestureDetector.onSecondaryTap. [...]
onSecondaryTapDown(TapDownDetails details) → void
Handler for TextSelectionGestureDetector.onSecondaryTapDown. [...]
onSingleLongTapEnd(LongPressEndDetails details) → void
Handler for TextSelectionGestureDetector.onSingleLongTapEnd. [...]
onSingleLongTapMoveUpdate(LongPressMoveUpdateDetails details) → void
Handler for TextSelectionGestureDetector.onSingleLongTapMoveUpdate. [...]
onSingleLongTapStart(LongPressStartDetails details) → void
Handler for TextSelectionGestureDetector.onSingleLongTapStart. [...]
onSingleTapCancel() → void
Handler for TextSelectionGestureDetector.onSingleTapCancel. [...]
onSingleTapUp(TapUpDetails details) → void
Handler for TextSelectionGestureDetector.onSingleTapUp. [...]
onTapDown(TapDownDetails details) → void
Handler for TextSelectionGestureDetector.onTapDown. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited