KeyDataCallback typedef Null safety

KeyDataCallback = bool Function(KeyData data)

Signature for PlatformDispatcher.onKeyData.

The callback should return true if the key event has been handled by the framework and should not be propagated further.

Implementation

typedef KeyDataCallback = bool Function(KeyData data);