operator [] method
- String? name
Gets a defined keyset.
If name
is null, then the defaultKeyset is returned.
If keyset is not found, KeysetException is thrown.
Implementation
Keyset operator [](String? name) {
if (name == null) {
return defaultKeyset;
}
if (!_store.containsKey(name)) {
throw KeysetException('Keyset "$name" is not defined');
}
return _store[name]!;
}