assign method

void assign(
  1. K key,
  2. V val
)

Implementation

void assign(K key, V val) {
  if (this is RxMap) {
    final RxMap<K, V> map = this as RxMap<K, V>;
    // map._value;
    map.value.clear();
    this[key] = val;
  } else {
    clear();
    this[key] = val;
  }
}