selection property

TextSelection selection

The region of text that is selected, if any.

Implementation

TextSelection get selection => _selection;
void selection= (TextSelection value)

Implementation

set selection(TextSelection value) {
  if (_selection == value)
    return;
  _selection = value;
  _selectionRects = null;
  markNeedsPaint();
  markNeedsSemanticsUpdate();
}