fromString static method
Returns a KeyInput matching the provided character, or a generic KeyInput containing the string.
Implementation
static KeyInput fromString(String string) {
final runes = string.runes;
for (final entry in _keyInputMap.entries) {
if (const IterableEquality<int>().equals(entry.key, runes)) {
return entry.value;
}
}
return KeyInput.unknown;
}