addEntries method Null safety

void addEntries (
  1. Iterable<MapEntry<K, V>> entries
)
inherited

This operation is not supported by an unmodifiable map.

Implementation

void addEntries(Iterable<MapEntry<K, V>> entries) {
  throw UnsupportedError("Cannot modify unmodifiable map");
}