updateAll method
Update all the keys in the DynamicContent.
Each key in the provided map is added to DynamicContent, replacing any data that was there previously, as if update had been called for each key.
Existing keys that are not present in the given map are left unmodified.
If the root node has subscribers (see subscribe), they are called once
per key in initialData
, not just a single time.
Collections (maps and lists) in initialData
must not be mutated after
calling this method; doing so would leave the DynamicContent in an
inconsistent state.
Implementation
void updateAll(DynamicMap initialData) {
for (final String key in initialData.keys) {
final Object value = initialData[key] ?? missing;
update(key, value);
}
}