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;
    // ignore: invalid_use_of_protected_member
    map.refresh();
  } else {
    if (this == val) return;
    clear();
    addAll(val);
  }
}