addEntries method
Adds all key/value pairs of newEntries
to this map.
If a key of other
is already in this map,
the corresponding value is overwritten.
The operation is equivalent to doing this[entry.key] = entry.value
for each MapEntry of the iterable.
Implementation
void addEntries(Iterable<MapEntry<K, V>> entries) {
for (var entry in entries) {
this[entry.key] = entry.value;
}
}