getAttribute method
Returns the value of the attribute of name.
Implementation
@override
String? getAttribute(String name) {
final element = nodeAsElement;
if (element != null) {
return element.attributes.getAttributeValue(name);
}
return null;
}