selectionState property

EditorSelectionState get selectionState

The state of the selected text from the editor.

It is used to manage the state of the toolbar buttons.

The value is set internally by the editor field and is read-only.

This is a shorthand for HtmlEditorValue.selectionState.

Implementation

EditorSelectionState get selectionState => value.selectionState;
  1. @internal
set selectionState (EditorSelectionState selectionState)

Implementation

@internal
set selectionState(EditorSelectionState selectionState) {
  value = value.copyWith(selectionState: selectionState);
}