SelectableRegionState class Null safety

State for a SelectableRegion.

Inheritance
Implemented types
Mixed in types

Constructors

SelectableRegionState()

Properties

context BuildContext
The location in the tree where this widget builds.
read-onlyinherited
contextMenuAnchors TextSelectionToolbarAnchors
Returns the anchor points for the default context menu.
read-only
contextMenuButtonItems List<ContextMenuButtonItem>
Returns the ContextMenuButtonItems representing the buttons in this platform's default selection menu.
read-only
copyEnabled bool
Whether copy is enabled, must not be null.
read-onlyinherited
cutEnabled bool
Whether cut is enabled, must not be null.
read-onlyoverride
endGlyphHeight double
The line height at the end of the current selection.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
lastSecondaryTapDownPosition Offset?
The position of the most recent secondary tap down event on this text input.
read / write
mounted bool
Whether this State object is currently in a tree.
read-onlyinherited
pasteEnabled bool
Whether paste is enabled, must not be null.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectAllEnabled bool
Whether select all is enabled, must not be null.
read-onlyinherited
selectionEndpoints List<TextSelectionPoint>
Returns the local coordinates of the endpoints of the current selection.
read-only
startGlyphHeight double
The line height at the start of the current selection.
read-only
textEditingValue TextEditingValue
Gets the current text input.
read / writeoverride-getter
widget SelectableRegion
The current configuration.
read-onlyinherited

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
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 non-existent 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