attributes property

List<String>? attributes

Implementation

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