onKeyDown property
Stream<KeyIdentifier?>
get
onKeyDown
Fires when a mapped key is pressed. Emits null for an unrecognised key value.
Implementation
Stream<KeyIdentifier?> get onKeyDown => streamKeyEvents().map((e) {
try {
return KeyIdentifier.fromValue(e.key);
} catch (_) {
return null;
}
});