SelectionChangedCallback typedef Null safety

SelectionChangedCallback = void Function(TextSelection selection, SelectionChangedCause? cause)

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);