MaterialTextSelectionControls class Null safety
Android Material styled text selection controls.
- Inheritance
- Object
- TextSelectionControls
- MaterialTextSelectionControls
Constructors
Properties
- 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 textHeight) → Widget -
Builder for material-style text selection handles.
override
-
buildToolbar(
BuildContext context, Rect globalEditableRegion, double textLineHeight, Offset selectionMidpoint, List< TextSelectionPoint> endpoints, TextSelectionDelegate delegate, ClipboardStatusNotifier clipboardStatus, Offset? lastSecondaryTapDownPosition) → Widget -
Builder for material-style copy/paste text selection toolbar.
override
-
canCopy(
TextSelectionDelegate delegate) → bool -
Whether the current selection of the text field managed by the given
delegate
can be copied to the Clipboard. [...]inherited -
canCut(
TextSelectionDelegate 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. [...]inherited -
canPaste(
TextSelectionDelegate delegate) → bool -
Whether the text field managed by the given
delegate
supports pasting from the clipboard. [...]inherited -
canSelectAll(
TextSelectionDelegate delegate) → bool -
Whether the current selection of the text field managed by the given
delegate
can be extended to include the entire content of the text field. [...]override -
getHandleAnchor(
TextSelectionHandleType type, double textLineHeight) → Offset -
Gets anchor for material-style text selection handles. [...]
override
-
getHandleSize(
double textLineHeight) → Size -
Returns the size of the Material handle.
override
-
handleCopy(
TextSelectionDelegate delegate, ClipboardStatusNotifier? clipboardStatus) → void -
Copy the current selection of the text field managed by the given
delegate
to the Clipboard. Then, move the cursor to the end of the text (collapsing the selection in the process), and hide the toolbar. [...]inherited -
handleCut(
TextSelectionDelegate 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. [...]inherited -
handlePaste(
TextSelectionDelegate 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. [...]inherited -
handleSelectAll(
TextSelectionDelegate delegate) → void -
Adjust the selection of the text field managed by the given
delegate
so that everything is selected. [...]inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited