setAttribute

void setAttribute(

  1. String name,
  2. String value
)

Sets an attribute value.

Implementation

void setAttribute(String name, String value) =>
    _node.setAttribute(name, value);