An object that manages a pair of text selection handles.

The selection handles are displayed in the Overlay that most closely encloses the given BuildContext.

Implements
  • TextSelectionDelegate

Constructors

TextSelectionOverlay({InputValue input, @required BuildContext context, Widget debugRequiredFor, RenderEditable renderObject, TextSelectionOverlayChanged onSelectionOverlayChanged, TextSelectionControls selectionControls })

Creates an object that manages overly entries for selection handles.

Properties

context BuildContext

The context in which the selection handles should appear.

read-only
debugRequiredFor Widget

Debugging information for explaining why the Overlay is required.

read-only
inputValue InputValue

read / write
onSelectionOverlayChanged TextSelectionOverlayChanged

Called when the the selection changes.

read-only
renderObject RenderEditable

The editable line in which the selected text is being displayed.

read-only
selectionControls TextSelectionControls

Builds text selection handles and toolbar.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

dispose() → void

Final cleanup.

hide() → void

Hides the overlay.

hideToolbar() → void

Hides the text selection toolbar.

showHandles() → void

Shows the handles by inserting them into the context's overlay.

showToolbar() → void

Shows the toolbar by inserting it into the context's overlay.

update(InputValue newInput) → void

Updates the overlay after the selection has changed.

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