TextSelectionGestureDetectorBuilder class

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:

Constructors

TextSelectionGestureDetectorBuilder({@required TextSelectionGestureDetectorBuilderDelegate delegate })
Creates a TextSelectionGestureDetectorBuilder. [...]

Properties

delegate TextSelectionGestureDetectorBuilderDelegate
The delegate for this TextSelectionGestureDetectorBuilder. [...]
@protected, final
editableText EditableTextState
The State of the EditableText for which the builder will provide a TextSelectionGestureDetector.
@protected, read-only
renderEditable RenderEditable
The RenderObject of the EditableText for which the builder will provide a TextSelectionGestureDetector.
@protected, read-only
shouldShowSelectionToolbar bool
Whether to show the selection toolbar. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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