selection property

  1. @override
TextSelection? selection
override

The region of text that is selected, if any.

Implementation

@override
TextSelection? get selection => _selection;
  1. @override
void selection=(TextSelection? value)
override

Implementation

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