getAttribute method

  1. @override
String? getAttribute(
  1. String name, {
  2. String? namespace,
})
inherited

Return the attribute value with the given name, or null.

Implementation

@override
String? getAttribute(String name, {String? namespace}) =>
    getAttributeNode(name, namespace: namespace)?.value;