putProperty method

bool putProperty(
  1. String key,
  2. String sValue
)

adds a new property to the attribute, overwrites the value set if it already exists. Retuns true, if a new property was added.

Implementation

bool putProperty(String key, String sValue) {
  Map<String, dynamic> p = value;

  bool wasAdded = !p.containsKey(key);

  p[key] = sValue;

  return wasAdded;
}