textSelection property Null safety
The currently selected text (or the position of the cursor) within this.value if this node represents a text field.
Implementation
TextSelection? get textSelection => _textSelection;
Implementation
set textSelection(TextSelection? value) {
assert(value != null);
_textSelection = value;
_hasBeenAnnotated = true;
}