setProperty method

Object? setProperty(
  1. Element element,
  2. String key,
  3. Object? value
)

Implementation

Object? setProperty(Element element, String key, Object? value) {
  var elemProps = _elementsProperties[element];
  if (elemProps == null) {
    _elementsProperties[element] = elemProps = {};
  }
  var prev = elemProps[key];
  elemProps[key] = value;
  return prev;
}