set method

void set(
  1. K key,
  2. V? value
)

Implementation

void set(K key, V? value) {
  if (value == null) {
    remove(key);
  } else {
    this[key] = value;
  }
}