FocusOnKeyCallback typedef

bool FocusOnKeyCallback (FocusNode node, RawKeyEvent event)

Signature of a callback used by Focus.onKey and FocusScope.onKey to receive key events.

The node is the node that received the event.

Implementation

typedef FocusOnKeyCallback = bool Function(FocusNode node, RawKeyEvent event);