setAttribute method

void setAttribute(
  1. String? namespace,
  2. String name,
  3. String? value
)

Sets, adds or (with a null value) removes an attribute.

Implementation

void setAttribute(String? namespace, String name, String? value) =>
    _setAttribute(this, _attributes, namespace, name, value);