attr function

void attr(
  1. String name,
  2. Object value
)

Used with elementOpenStart and elementOpenEnd to declare an element.

Sets an attribute with name and value.

Implementation

void attr(String name, Object value) => _incDom.callMethod('attr', <Object>[name, value]);