getAttributeMap function

Map<String, String> getAttributeMap(
  1. Iterable<XmlAttribute> attributes
)

Implementation

Map<String, String> getAttributeMap(Iterable<XmlAttribute> attributes) {
  return Map.fromEntries(
    attributes.map(
      (e) => MapEntry(e.name.qualified, e.value),
    ),
  );
}