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;
  if (!hasAttributeValue) return false;
  var valuesList = parseListOfStrings(value, delimiterPattern);
  if (valuesList.isEmpty) return false;

  for (var entry in valuesList) {
    if (!_values.contains(entry)) {
      return false;
    }
  }

  return true;
}