attributes property
Implementation
List<String>? get attributes {
if (referencedNode.nodeType == NodeType.ELEMENT_NODE) {
List<String> attrs = [];
Element el = referencedNode as Element;
el.properties.forEach((key, value) {
attrs.add(key);
attrs.add(value.toString());
});
return attrs;
} else {
return null;
}
}