addAll method
Adds all key/value pairs of other
to this.
If any key/value pairs are new or changed then a MapUpdate is sent to attached streams.
Implementation
@override
void addAll(Map<K, V?> other) {
if (isClosed) {
throw StateError('Cannot update state stream because it is closed');
}
final updatedMap = _createUpdatedMap(other);
if (updatedMap.isNotEmpty) {
final prevMap = {..._map};
_map.addAll(updatedMap);
_send(updatedMap, _map, prevMap);
}
}