takeFromMapMap method
void
takeFromMapMap(
- Map<K1, Map<K, V>> replacement
)
Implementation
void takeFromMapMap(Map<K1, Map<K, V>> replacement) {
// Now, let's apply all the childThreads. This will make sure to remove anything that needs removing, etc.
removes(replacement).forEach((removedKey) {
// Instead of removing, just clear out the list. This ensures that everybody knows about it.
this[removedKey]!.sync(<K, V>{});
});
replacement.forEach((key, list) {
final SunnyObservableMap<K, V> childThreads = this[key]!;
childThreads.sync(list);
});
}