textSelection property

TextSelection? get textSelection

The currently selected text (or the position of the cursor) within value if this node represents a text field.

Implementation

TextSelection? get textSelection => _textSelection;
set textSelection (TextSelection? value)

Implementation

set textSelection(TextSelection? value) {
  assert(value != null);
  _textSelection = value;
  _hasBeenAnnotated = true;
}