EditorTextSelectionGestureDetectorBuilder class

Builds a EditorTextSelectionGestureDetector 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, onForcePressStart, etc.). Subclasses of EditorTextSelectionGestureDetectorBuilder can change the behavior performed in responds to these gesture events by overriding the corresponding handler methods of this class.

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

See also:

Properties

delegate EditorTextSelectionGestureDetectorBuilderDelegate
The delegate for this EditorTextSelectionGestureDetectorBuilder.
final
detectWordBoundary bool
getter/setter pair
editor EditorState?
The State of the EditableText for which the builder will provide a EditorTextSelectionGestureDetector.
no setter
hashCode int
The hash code for this object.
no setterinherited
renderEditor RenderEditor?
The RenderObject of the EditableText for which the builder will provide a EditorTextSelectionGestureDetector.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldShowSelectionToolbar bool
Whether to show the selection toolbar.
getter/setter pair

Methods

build({required HitTestBehavior behavior, required Widget child, Key? key, bool detectWordBoundary = true}) Widget
Returns a EditorTextSelectionGestureDetector configured with the handlers provided by this builder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDoubleTapDown(TapDownDetails details) → void
Handler for EditorTextSelectionGestureDetector.onDoubleTapDown.
onDragSelectionEnd(DragEndDetails details) → void
Handler for EditorTextSelectionGestureDetector.onDragSelectionEnd.
onDragSelectionStart(DragStartDetails details) → void
Handler for EditorTextSelectionGestureDetector.onDragSelectionStart.
onDragSelectionUpdate(DragStartDetails startDetails, DragUpdateDetails updateDetails) → void
Handler for EditorTextSelectionGestureDetector.onDragSelectionUpdate.
onForcePressEnd(ForcePressDetails details) → void
Handler for EditorTextSelectionGestureDetector.onForcePressEnd.
onForcePressStart(ForcePressDetails details) → void
Handler for EditorTextSelectionGestureDetector.onForcePressStart.
onSecondarySingleTapUp(TapUpDetails details) → void
onSingleTapUp for mouse right click
onSingleLongTapEnd(LongPressEndDetails details) → void
Handler for EditorTextSelectionGestureDetector.onSingleLongTapEnd.
onSingleLongTapMoveUpdate(LongPressMoveUpdateDetails details) → void
Handler for EditorTextSelectionGestureDetector.onSingleLongTapMoveUpdate
onSingleLongTapStart(LongPressStartDetails details) → void
Handler for EditorTextSelectionGestureDetector.onSingleLongTapStart.
onSingleTapCancel() → void
Handler for EditorTextSelectionGestureDetector.onSingleTapCancel.
onSingleTapUp(TapUpDetails details) → void
Handler for EditorTextSelectionGestureDetector.onSingleTapUp.
onTapDown(TapDownDetails details) → void
Handler for EditorTextSelectionGestureDetector.onTapDown.
toString() String
A string representation of this object.
inherited

Operators

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