setOrUpdate method
- V value
override
Sets the value associated with the key.
If the key is present, the value is updated; otherwise, the key-value pair is inserted into the map.
Implementation
@override
void setOrUpdate(V value) {
_value = value;
}