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.get(name)?.toString();
}
return null;
}