containsAllClasses method
Returns true
if attribute class
has all classes
.
Implementation
bool containsAllClasses(Iterable<String>? classes) {
var attribute = getAttribute('class');
if (attribute == null) return false;
if (classes == null || classes.isEmpty) return false;
for (var c in classes) {
if (!attribute.containsValue(c)) {
return false;
}
}
return true;
}