addEntries method

  1. @override
void addEntries (Iterable<Object> entries)
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
// TODO: Dart 2.0 requires this method to be implemented.
// ignore: override_on_non_overriding_method
void addEntries(Iterable<Object> entries) {
  // Change Iterable<Object> to Iterable<MapEntry<K, V>> when
  // the MapEntry class has been added.
  throw new UnimplementedError("addEntries");
}