hasAttribute method

Future<bool> hasAttribute(
  1. String attributeName
)

Checks for the presence of an attribute. Returns true if found.

attributeName the fully qualified or unqualified name.

Implementation

Future<bool> hasAttribute(String attributeName) async => attributes.any((a) =>
    (a.name == attributeName) || (_stripNamespace(a.name) == attributeName));