addEntries method

  1. @override
void addEntries (
  1. Iterable<MapEntry<K, V>> newEntries
)
override

Adds all key/value pairs of newEntries to this map.

If a key of newEntries 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

@override
void addEntries(Iterable<MapEntry<K, V>> newEntries) {
  if(newEntries == null) return;
  newEntries.forEach((entry){
    _items.add(JMapEntry(entry.key, entry.value));
  });
}