put method

dynamic put(
  1. String key,
  2. Object? value
)

put property value to key.

Implementation

dynamic put(String key, Object? value) {
  var valueStr = toStringValue(value);

  var prev = this[key];
  this[key] = valueStr;
  return prev;
}