operator []= method

void operator []=(
  1. ImAddressKey key,
  2. String? value
)

Implementation

operator []=(ImAddressKey key, String? value) {
  if (value == null) {
    this.InternalRemove(key);
  } else {
    if (this.Entries.containsKey(key)) {
      ImAddressEntry entry = this.Entries[key]!;
      entry.ImAddress = value;
      this.Changed();
    } else {
      ImAddressEntry entry = new ImAddressEntry.withKey(key, value);
      this.InternalAdd(entry);
    }
  }
}