removeAttr method

void removeAttr(
  1. String name
)

Removes an attribute from the element.

If the attribute is in observedAttributes, attributeChangedCallback will be triggered by the MutationObserver with newValue as null.

Does nothing if not hydrated or running on server.

Implementation

void removeAttr(String name) {
  _element?.removeAttribute(name);
}