addAll method
override
Adds all key/value pairs ofother to this map.
If a key ofother is already in this map, its value is overwritten.
The operation is equivalent to doingthis[key] = value for each keyand associated value in other. It iterates overother, which musttherefore not change during the iteration.
final planets = <int, String>{1: 'Mercury', 2: 'Earth'};planets.addAll({5: 'Jupiter', 6: 'Saturn'});print(planets); // {1: Mercury, 2: Earth, 5: Jupiter, 6: Saturn}Implementation
void addAll(Map<String, dynamic> other) { throw new UnsupportedError("Not supported");}