findAttributeIn static method

TreeElement? findAttributeIn(
  1. List<TreeElement> attributes,
  2. String? namespace,
  3. String name
)

The attribute called name in namespace (any namespace if null) among attributes. Port of the static TreeElement.getAttribute.

Implementation

static TreeElement? findAttributeIn(
  List<TreeElement> attributes,
  String? namespace,
  String name,
) => _findAttribute(attributes, namespace, name);