putOrRemove method
void
putOrRemove(
- K key,
- V? value
Implementation
void putOrRemove(K key, V? value) {
if (value != null) {
this[key] = value;
} else {
remove(key);
}
}
void putOrRemove(K key, V? value) {
if (value != null) {
this[key] = value;
} else {
remove(key);
}
}