TextSelectionGestureDetectorBuilderDelegate class abstract

Delegate interface for the TextSelectionGestureDetectorBuilder.

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

See also:

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




editableTextKey GlobalKey<EditableTextState>
GlobalKey to the EditableText for which the TextSelectionGestureDetectorBuilder will build a TextSelectionGestureDetector.
no setter
forcePressEnabled bool
Whether the text field should respond to force presses.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionEnabled bool
Whether the user may select text in the text field.
no setter


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


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