TextSelectionGestureDetectorBuilderDelegate class

Delegate interface for the TextSelectionGestureDetectorBuilder.

The interface is usually implemented by textfield implementations wrapping EditableText, that use a TextSelectionGestureDetectorBuilder to build a TextSelectionGestureDetector for their EditableText. The delegate provides the builder with information about the current state of the textfield. Based on these information, the builder adds the correct gesture handlers to the gesture detector.

See also:

  • TextField, which implements this delegate for the Material textfield.
  • CupertinoTextField, which implements this delegate for the Cupertino textfield.

Constructors

TextSelectionGestureDetectorBuilderDelegate()

Properties

editableTextKey GlobalKey<EditableTextState>
GlobalKey to the EditableText for which the TextSelectionGestureDetectorBuilder will build a TextSelectionGestureDetector.
read-only
forcePressEnabled bool
Whether the textfield should respond to force presses.
read-only
selectionEnabled bool
Whether the user may select text in the textfield.
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

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