OnKeyEventCallback typedef

OnKeyEventCallback = KeyEventResult Function(KeyEvent event)

Signature of a callback used by FocusManager.addEarlyKeyEventHandler and FocusManager.addLateKeyEventHandler.

The event parameter is a KeyEvent that is being sent to the callback to be handled.

The KeyEventResult return value indicates whether or not the event will continue to be propagated. If the value returned is KeyEventResult.handled or KeyEventResult.skipRemainingHandlers, then the event will not continue to be propagated.

Implementation

typedef OnKeyEventCallback = KeyEventResult Function(KeyEvent event);