addAll method Null safety

void addAll(
  1. Map<K, V> other,
  2. {bool notifyChanges = true}
)

Adds all key/value pairs of other to this map.

If a key of other is already in this map, its value is overwritten.

Implementation

void addAll(Map<K, V> other, {bool notifyChanges = true}) {
  _value.addAll(other);

  if (notifyChanges) {
    _viewModel.notifyChanges([
      EmpireStateChanged.addedMapToMap(other, propertyName: propertyName)
    ]);
  }
}