onChangeSelection property

(void Function(EditorSettings)?) onChangeSelection
getter/setter pair

Called whenever the selection area of the editor is changed.

It passes all the editor settings at the current selection as an argument. This can be used in custom toolbar item implementations, to update your toolbar item UI when the editor formatting changes.

Implementation

void Function(EditorSettings)? onChangeSelection;