onKeyData property

KeyDataCallback? get onKeyData

A callback that is invoked when key data is available.

The framework invokes this callback in the same zone in which the callback was set.

Implementation

KeyDataCallback? get onKeyData => platformDispatcher.onKeyData;
set onKeyData (KeyDataCallback? callback)

Implementation

set onKeyData(KeyDataCallback? callback) {
  platformDispatcher.onKeyData = callback;
}