hasClass method

void hasClass(
  1. String className
)

Implementation

void hasClass(String className) {
  element?.classList.contains(className);
}