set<V> method

V? set<V>(
  1. String key,
  2. V? value
)

Sets key to value.

Implementation

V? set<V>(String key, V? value) {
  var prev = _properties[key];
  _properties[key] = value;

  _notifyChange(StateOperation.set, key, value);

  return prev as V?;
}