SelectableTextSelectionControls class

Copy from TextSelectionControls An interface for building the selection UI, to be provided by the implementor of the toolbar widget. delete cut, paste

Constructors

SelectableTextSelectionControls()

Properties

handleSize Size
Returns the size of the selection handle.
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

buildHandle(BuildContext context, TextSelectionHandleType type, double textLineHeight) Widget
Builds a selection handle of the given type. [...]
buildToolbar(BuildContext context, Rect globalEditableRegion, Offset position, SelectableTextSelectionDelegate delegate) Widget
Builds a toolbar near a text selection. [...]
canCopy(SelectableTextSelectionDelegate delegate) bool
Whether the current selection of the text field managed by the given delegate can be copied to the Clipboard. [...]
canSelectAll(SelectableTextSelectionDelegate delegate) bool
Whether the current Clipboard content can be pasted into the text field managed by the given delegate. [...]
handleCopy(SelectableTextSelectionDelegate delegate) → void
Copy the current selection of the text field managed by the given delegate to the Clipboard. Then, remove the selected text from the text field and hide the toolbar. [...]
handlePaste(SelectableTextSelectionDelegate delegate) Future<void>
Paste the current clipboard selection (obtained from Clipboard) into the text field managed by the given delegate, replacing its current selection, if any. Then, hide the toolbar. [...]
handleSelectAll(TextSelectionDelegate delegate) → void
Adjust the selection of the text field managed by the given delegate so that everything is selected. [...]
isTextSelection(SelectableTextSelectionDelegate delegate) bool
Whether the current selection of the text field managed by the given delegate can be removed from the text field and placed into the Clipboard. [...]
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 ==(Object other) bool
The equality operator. [...]
inherited