selection property

Selection? selection

The selection of the editor.

Implementation

Selection? get selection => selectionNotifier.value;
void selection=(Selection? value)

Sets the selection of the editor.

Implementation

set selection(Selection? value) {
  // clear the toggled style when the selection is changed.
  if (selectionNotifier.value != value) {
    _toggledStyle.clear();
  }

  selectionNotifier.value = value;
}