add method
Adds a keyset
named name
to the store.
If useAsDefault
is true, then it will be used as a default keyset.
If a default keyset already exists, this keyset will be used as a new default.
Implementation
Keyset add(String name, Keyset keyset, {bool useAsDefault = false}) {
if (_store.containsKey(name)) {
throw KeysetException('Keyset "$name" already exists');
}
_store[name] = keyset;
if (useAsDefault) {
_defaultName = name;
}
return keyset;
}