assignAll method

void assignAll(
  1. Map<K, V> val
)

Implementation

void assignAll(Map<K, V> val) {
  if (val is RxMap && this is RxMap) {
    if ((val as RxMap)._value == (this as RxMap)._value) return;
  }
  if (this is RxMap) {
    final map = (this as RxMap);
    if (map._value == val) return;
    map._value = val;
    map.refresh();
  } else {
    if (this == val) return;
    clear();
    addAll(val);
  }
}