KeyDataCallback typedef Null safety

bool KeyDataCallback(
  1. KeyData data
)

Signature for PlatformDispatcher.onKeyData.

Implementation

typedef KeyDataCallback = bool Function(KeyData data);