hasAttributeInAllowlist function

bool hasAttributeInAllowlist(
  1. String name,
  2. String attr
)

Implementation

bool hasAttributeInAllowlist(String name, String attr) =>
    _selectors.any((selectors) => selectors.any((selector) =>
        (selector.element == name || selector.element == null) &&
        selector.attrs.any((matcher) => matcher.name == attr)));