containsClass method

bool containsClass(
  1. String className
)

Returns true if attribute class has the className.

Implementation

bool containsClass(String className) {
  var attribute = getAttribute('class');
  if (attribute == null) return false;
  return attribute.containsValue(className);
}