toXmlAttributes method

  1. @override
List<XmlAttribute> toXmlAttributes({
  1. Map<String, String?> namespaces = const {},
})

Returns a list of the XML attributes of this.

Implementation

@override
List<XmlAttribute> toXmlAttributes({
  Map<String, String?> namespaces = const {},
}) {
  final attributes = _$AttachedFileToXmlAttributes(
    this,
    namespaces: namespaces,
  );
  if (customAttributes != null) {
    attributes.addAll(customAttributes!);
  }
  return attributes;
}