TextSelectionChangedHandler typedef Null safety
Signature for the callback that reports when the user changes the selection (including the cursor location).
Used by RenderEditor.onSelectionChanged.
Implementation
typedef TextSelectionChangedHandler = void Function(
TextSelection selection, SelectionChangedCause cause);