containsAttributeValue method

  1. @override
bool containsAttributeValue(
  1. Object? value
)
override

Parses value and returns true if this instance contains it.

Implementation

@override
bool containsAttributeValue(Object? value) {
  if (value == null) return false;
  var css = CSS(value);
  if (css.isEmpty) return false;
  if (!hasAttributeValue) return false;

  for (var entry in css.entries) {
    if (!_css.containsEntry(entry)) {
      return false;
    }
  }

  return true;
}