FocusOnKeyEventCallback typedef

FocusOnKeyEventCallback = KeyEventResult Function(FocusNode node, KeyEvent event)

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

The node is the node that received the event.

Returns a KeyEventResult that describes how, and whether, the key event was handled.

Implementation

typedef FocusOnKeyEventCallback = KeyEventResult Function(FocusNode node, KeyEvent event);