KeySet<T extends KeyboardKey>.fromSet constructor
- Set<
T> keys
Create a KeySet from a set of KeyboardKeys.
Do not mutate the keys set after passing it to this object.
The keys set must not be empty.
Implementation
KeySet.fromSet(Set<T> keys) : assert(keys.isNotEmpty), _keys = HashSet<T>.of(keys);