setOrUpdate method

  1. @override
void setOrUpdate(
  1. 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
@pragma('vm:prefer-inline')
void setOrUpdate(V value) {
  _map[key] = value;
}