remove method - AttributeClassSet class - dart:svg library (original) (raw)
bool remove(
- Object? value )
inherited
Remove the class value
from element, and return true on successful removal.
This is the Dart equivalent of jQuery'sremoveClass.
Implementation
bool remove(Object? value) {
if (value is! String) return false;
_validateToken(value);
Set<String> s = readClasses();
bool result = s.remove(value);
writeClasses(s);
return result;
}