addClass method

void addClass(
  1. String clazz
)

Adds a class to all elements of this Iterable of Elements.

Implementation

void addClass(String clazz) {
  for (var e in this) {
    e.classes.add(clazz);
  }
}