addEntries method

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

Adds all the key/value pairs of newEntries to othis map. Listeners are notified after all the entries have been added.

If a key of newEntries is already in the map, the corresponding value is ovewritten.

The operations is equivalent to doing this[entry.key] = entry.value for each MapEntry of the iterable.

Implementation

@override
void addEntries(Iterable<MapEntry<K, T>> newEntries) {
  assert(_debugAssertNotDisposed());
  _map!.addEntries(newEntries);
  notifyListeners();
}