KeyEventCallback typedef Null safety

KeyEventCallback = bool Function(KeyEvent event)

The signature for HardwareKeyboard.addHandler, a callback to to decide whether the entire framework handles a key event.

Implementation

typedef KeyEventCallback = bool Function(KeyEvent event);