setAttribute method

  1. @override
void setAttribute(
  1. String name,
  2. String value
)
override

Sets the value of the attribute of name.

Implementation

@override
void setAttribute(String name, String value) {
  if (isNodeElement) {
    nodeAsElement!.attributes[name] = value;
  }
}