fromAttributes static method

List<XmlAttribute> fromAttributes(
  1. List<XmlAttribute> attributes
)

Converts all values in the list into a list of attributes that can be added to a path element for avd.

Implementation

static List<XmlAttribute> fromAttributes(List<XmlAttribute> attributes) {
  final element = XmlElement(
    XmlName('svg-to-avd:temporary-container'),
    attributes.map((child) => child.copy()),
  );
  return <XmlAttribute>[
    ..._getOpacityAttributes(element),
    ..._setDefaultFillAttribute(element),
    ..._getFillRuleAttribute(element),
    ..._getStrokeAttribute(element),
    ..._renameUnconvertedAttributes(element),
  ];
}