toggleClass method

void toggleClass(
  1. String className
)

Implementation

void toggleClass(String className) {
  element?.classList.toggle(className);
}