KeyBinding.char constructor
KeyBinding.char(})
Creates a binding for character input matching a predicate.
Implementation
factory KeyBinding.char(
bool Function(String char) matcher,
KeyActionResult Function(KeyEvent event) action, {
String? hintLabel,
String? hintDescription,
}) {
return KeyBinding(
keys: {KeyEventType.char},
charMatcher: matcher,
action: action,
hintLabel: hintLabel,
hintDescription: hintDescription,
);
}