CupertinoDesktopTextSelectionControls class
Desktop Cupertino styled text selection controls.
The cupertinoDesktopTextSelectionControls global variable has a suitable instance of this class.
- Inheritance
-
- Object
- TextSelectionControls
- CupertinoDesktopTextSelectionControls
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildHandle(
BuildContext context, TextSelectionHandleType type, double textLineHeight, [VoidCallback? onTap]) → Widget -
Builds the text selection handles, but desktop has none.
override
-
buildToolbar(
BuildContext context, Rect globalEditableRegion, double textLineHeight, Offset selectionMidpoint, List< TextSelectionPoint> endpoints, TextSelectionDelegate delegate, ValueListenable<ClipboardStatus> ? clipboardStatus, Offset? lastSecondaryTapDownPosition) → Widget -
Builder for the MacOS-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.inherited -
getHandleAnchor(
TextSelectionHandleType type, double textLineHeight) → Offset -
Gets the position for the text selection handles, but desktop has none.
override
-
getHandleSize(
double textLineHeight) → Size -
Desktop has no text selection handles.
override
-
handleCopy(
TextSelectionDelegate delegate) → void -
Call TextSelectionDelegate.copySelection to copy current selection.
inherited
-
handleCut(
TextSelectionDelegate delegate) → void -
Call TextSelectionDelegate.cutSelection to cut current selection.
inherited
-
handlePaste(
TextSelectionDelegate delegate) → Future< void> -
Call TextSelectionDelegate.pasteText to paste text.
inherited
-
handleSelectAll(
TextSelectionDelegate delegate) → void -
Call TextSelectionDelegate.selectAll to set the current selection to
contain the entire text value.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited