KeyBinding constructor
const
KeyBinding({
- required Set<
KeyEventType> keys, - required KeyActionResult action(
- KeyEvent event
- bool charMatcher(
- String char
- String? hintLabel,
- String? hintDescription,
Creates a binding that matches the provided keys. For convenience,
prefer the single, multi, or char factories when possible.
Implementation
const KeyBinding({
required this.keys,
required this.action,
this.charMatcher,
this.hintLabel,
this.hintDescription,
});