SelectableRegionState class

State for a SelectableRegion.

Inheritance
Implemented types
Mixed-in types

Constructors

SelectableRegionState()

Properties

context BuildContext
The location in the tree where this widget builds.
no setterinherited
contextMenuAnchors TextSelectionToolbarAnchors
Returns the anchor points for the default context menu.
no setter
contextMenuButtonItems List<ContextMenuButtonItem>
Returns the ContextMenuButtonItems representing the buttons in this platform's default selection menu.
no setter
copyEnabled bool
Whether copy is enabled.
no setterinherited
cutEnabled bool
Whether cut is enabled.
no setteroverride
endGlyphHeight double
The line height at the end of the current selection.
no setter
hashCode int
The hash code for this object.
no setterinherited
liveTextInputEnabled bool
Whether Live Text input is enabled.
no setterinherited
lookUpEnabled bool
Whether look up is enabled.
no setterinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
pasteEnabled bool
Whether paste is enabled.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchWebEnabled bool
Whether search web is enabled.
no setterinherited
selectAllEnabled bool
Whether select all is enabled.
no setterinherited
selectionEndpoints List<TextSelectionPoint>
Returns the local coordinates of the endpoints of the current selection.
no setter
selectionOverlay SelectionOverlay?
The SelectionOverlay that is currently visible on the screen.
no setter
shareEnabled bool
Whether share is enabled.
no setterinherited
startGlyphHeight double
The line height at the start of the current selection.
no setter
textEditingValue TextEditingValue
Gets the current text input.
getter/setter pairoverride-getter
widget SelectableRegion
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
add(Selectable selectable) → void
Adds the selectable into the registrar.
override
bringIntoView(TextPosition position) → void
Brings the provided TextPosition into the visible area of the text input.
override
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
clearSelection() → void
Removes the ongoing selection for this SelectableRegion.
copySelection(SelectionChangedCause cause) → void
Copy current selection to Clipboard.
override
cutSelection(SelectionChangedCause cause) → void
Cut current selection to Clipboard.
override
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
override
didUpdateWidget(covariant SelectableRegion oldWidget) → void
Called whenever the widget configuration changes.
override
dispose() → void
Called when this object is removed from the tree permanently.
override
hideToolbar([bool hideHandles = true]) → void
Hides the text selection toolbar.
override
initState() → void
Called when this object is inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pasteText(SelectionChangedCause cause) Future<void>
Paste text from Clipboard.
override
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
remove(Selectable selectable) → void
Removes the selectable from the registrar.
override
selectAll([SelectionChangedCause? cause]) → void
Set the current selection to contain the entire text value.
override
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause) → void
Indicates that the user has requested the delegate to replace its current text editing state with value.
override

Operators

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