KeyBinding.single constructor
KeyBinding.single(
- KeyEventType key,
- KeyActionResult action(
- KeyEvent event
- String? hintLabel,
- String? hintDescription,
Creates a binding for a single key type.
Implementation
factory KeyBinding.single(
KeyEventType key,
KeyActionResult Function(KeyEvent event) action, {
String? hintLabel,
String? hintDescription,
}) {
return KeyBinding(
keys: {key},
action: action,
hintLabel: hintLabel,
hintDescription: hintDescription,
);
}