fromRunes static method

KeyInput fromRunes(
  1. Iterable<int> runes
)

Returns KeyInput matching the provided character runes.

Implementation

static KeyInput fromRunes(Iterable<int> runes) {
  for (final entry in _keyInputMap.entries) {
    if (const IterableEquality<int>().equals(entry.key, runes)) {
      return entry.value;
    }
  }
  return KeyInput.unknown;
}