addValues method
Add all values
to specified key
Is equivilent to calling add(
key
, value)
for all values
.
Note: if values
is empty key
will still be added and mapped to an
empty Iterable.
See add.
Throws ArgumentError if key
is empty or null.
Throws ArgumentError if keyMapping(
key
)
is empty or null.
Implementation
@override
void addValues(String key, Iterable<V> values) {
ArgumentError.checkNotNull(values, 'values');
if (_addIterable(_mapKeyNonEmpty(key).runes.toList(), values)) {
_version.value.incKeysVersion();
}
// Lot of work to determine if value change has occured so just assume it has
_version.value.incValuesVersion();
}