KeyStroke.char constructor
KeyStroke.char(
- String char
A representation of a keystroke.
Implementation
factory KeyStroke.char(String char) {
assert(char.length == 1, 'characters must be a single unit');
return KeyStroke(
char: char,
controlChar: ControlCharacter.none,
);
}