add method

void add({
  1. required K key,
  2. required V value,
})

Implementation

void add({required K key, required V value}) {
  if (_allowedInExpando(key)) {
    _expando[key!] = value;
  } else {
    _map[key] = value;
  }

  if (!contains(key)) {
    _keys.add(key);
  }
}