assign method

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

Implementation

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