TextEditingActionTarget class Null safety

The recipient of a TextEditingAction.

TextEditingActions will only be enabled when an implementer of this class is focused.

See also:

  • EditableTextState, which implements this and is the most typical target of a TextEditingAction.
Implementers

Constructors

TextEditingActionTarget()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
obscureText bool
Whether the characters in the field are obscured from the user. [...]
read-only
readOnly bool
Whether the field currently in a read-only state. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectionEnabled bool
Whether the textEditingValue's selection can be modified.
read-only
textEditingValue TextEditingValue
The TextEditingValue expressed in this field.
read-only
textLayoutMetrics TextLayoutMetrics
Provides information about the text that is the target of this action. [...]
read-only

Methods

copySelection(SelectionChangedCause cause) → void
Copy current selection to Clipboard. [...]
cutSelection(SelectionChangedCause cause) → void
Cut current selection to Clipboard. [...]
debugAssertLayoutUpToDate() → void
Called when assuming that the text layout is in sync with textEditingValue. [...]
delete(SelectionChangedCause cause) → void
Deletes backwards from the current selection. [...]
deleteByLine(SelectionChangedCause cause) → void
Deletes a line backwards from the current selection. [...]
deleteByWord(SelectionChangedCause cause, [bool includeWhitespace = true]) → void
Deletes a word backwards from the current selection. [...]
deleteForward(SelectionChangedCause cause) → void
Deletes in the forward direction. [...]
deleteForwardByLine(SelectionChangedCause cause) → void
Deletes a line in the forward direction from the current selection. [...]
deleteForwardByWord(SelectionChangedCause cause, [bool includeWhitespace = true]) → void
Deletes a word in the forward direction from the current selection. [...]
deleteToEnd(SelectionChangedCause cause) → void
Deletes the from the current collapsed selection to the end of the field. [...]
deleteToStart(SelectionChangedCause cause) → void
Deletes the from the current collapsed selection to the start of the field. [...]
expandSelectionLeftByLine(SelectionChangedCause cause) → void
Expand the current selection to the smallest selection that includes the start of the line. [...]
expandSelectionRightByLine(SelectionChangedCause cause) → void
Expand the current selection to the smallest selection that includes the end of the line. [...]
expandSelectionToEnd(SelectionChangedCause cause) → void
Expand the current selection to the end of the field. [...]
expandSelectionToStart(SelectionChangedCause cause) → void
Expand the current selection to the start of the field. [...]
extendSelectionDown(SelectionChangedCause cause) → void
Keeping selection's TextSelection.baseOffset fixed, move the TextSelection.extentOffset down by one line. [...]
extendSelectionLeft(SelectionChangedCause cause) → void
If selectionEnabled is false, keeps the selection collapsed and moves it left. [...]
extendSelectionLeftByLine(SelectionChangedCause cause) → void
Extend the current selection to the start of TextSelection.extentOffset's line. [...]
extendSelectionLeftByWord(SelectionChangedCause cause, [bool includeWhitespace = true, bool stopAtReversal = false]) → void
Extend the current selection to the previous start of a word. [...]
extendSelectionRight(SelectionChangedCause cause) → void
Keeping selection's TextSelection.baseOffset fixed, move the TextSelection.extentOffset right. [...]
extendSelectionRightByLine(SelectionChangedCause cause) → void
Extend the current selection to the end of TextSelection.extentOffset's line. [...]
extendSelectionRightByWord(SelectionChangedCause cause, [bool includeWhitespace = true, bool stopAtReversal = false]) → void
Extend the current selection to the next end of a word. [...]
extendSelectionUp(SelectionChangedCause cause) → void
Keeping selection's TextSelection.baseOffset fixed, move the TextSelection.extentOffset up by one line. [...]
moveSelectionDown(SelectionChangedCause cause) → void
Move the current selection to the next line. [...]
moveSelectionLeft(SelectionChangedCause cause) → void
Move the current selection left by one character. [...]
moveSelectionLeftByLine(SelectionChangedCause cause) → void
Move the current selection to the leftmost point of the current line. [...]
moveSelectionLeftByWord(SelectionChangedCause cause, [bool includeWhitespace = true]) → void
Move the current selection to the previous start of a word. [...]
moveSelectionRight(SelectionChangedCause cause) → void
Move the current selection to the right by one character. [...]
moveSelectionRightByLine(SelectionChangedCause cause) → void
Move the current selection to the rightmost point of the current line. [...]
moveSelectionRightByWord(SelectionChangedCause cause, [bool includeWhitespace = true]) → void
Move the current selection to the next end of a word. [...]
moveSelectionToEnd(SelectionChangedCause cause) → void
Move the current selection to the end of the field. [...]
moveSelectionToStart(SelectionChangedCause cause) → void
Move the current selection to the start of the field. [...]
moveSelectionUp(SelectionChangedCause cause) → void
Move the current selection up by one line. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pasteText(SelectionChangedCause cause) Future<void>
Paste text from Clipboard. [...]
selectAll(SelectionChangedCause cause) → void
Select the entire text value. [...]
setSelection(TextSelection nextSelection, SelectionChangedCause cause) → void
Called to update the TextSelection in the current TextEditingValue.
setTextEditingValue(TextEditingValue newValue, SelectionChangedCause cause) → void
Called to update the current TextEditingValue.
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

nextCharacter(int index, String string, [bool includeWhitespace = true]) int
Returns the index into the string of the next character boundary after the given index. [...]
previousCharacter(int index, String string, [bool includeWhitespace = true]) int
Returns the index into the string of the previous character boundary before the given index. [...]