SelectionChangedCallback typedef
Signature for the callback that reports when the user changes the selection (including the cursor location).
Implementation
typedef SelectionChangedCallback = void Function(TextSelection selection, SelectionChangedCause cause);