KeyCode.from constructor
KeyCode.from(
- KeyboardKey key, {
- String? label,
Creates a KeyCode from a LogicalKeyboardKey.
Implementation
factory KeyCode.from(KeyboardKey key, {String? label}) {
return KeyCode({_getKeyId(key)}, label: label ?? _getKeyLabel(key));
}