addAll 方法
override
将 other 中的所有键/值对添加到这个映射中。
如果 other 中的键已经在这个映射中,则其值将被覆盖。
此操作相当于对 other 中的每个键及其相关值执行 this[key] = value。它迭代 other,因此迭代过程中 other 必须保持不变。
final planets = <int, String>{1: 'Mercury', 2: 'Earth'};
planets.addAll({5: 'Jupiter', 6: 'Saturn'});
print(planets); // {1: Mercury, 2: Earth, 5: Jupiter, 6: Saturn}
实现
void addAll(Map<String, dynamic> other) {
throw new UnsupportedError("Not supported");
}