remove method

bool remove (Object value)
inherited

Remove the class value from element, and return true on successful removal.

This is the Dart equivalent of jQuery's removeClass.

Implementation

bool remove(Object value) {
  _validateToken(value);
  if (value is! String) return false;
  Set<String> s = readClasses();
  bool result = s.remove(value);
  writeClasses(s);
  return result;
}