addClass method

void addClass(
  1. String className
)

Adds a className to attribute class.

Implementation

void addClass(String className) {
  appendToAttribute('class', className);
}