removeAttribute method

  1. @mustCallSuper
void removeAttribute(
  1. String qualifiedName
)

Implementation

@mustCallSuper
void removeAttribute(String qualifiedName) {
  ElementAttributeProperty? propertyHandler = _attributeProperties[qualifiedName];

  if (propertyHandler != null && propertyHandler.deleter != null) {
    propertyHandler.deleter!();
  }

  if (hasAttribute(qualifiedName)) {
    attributes.remove(qualifiedName);
    final isNeedRecalculate = _checkRecalculateStyle([qualifiedName]);
    recalculateStyle(rebuildNested: isNeedRecalculate);
  }
}