SetSelectionHandler typedef Null safety

void SetSelectionHandler(
  1. TextSelection selection
)

Signature for the SemanticsAction.setSelection handlers to change the text selection (or re-position the cursor) to selection.

Implementation

typedef SetSelectionHandler = void Function(TextSelection selection);