parse method

SVGData parse(
  1. String text
)

Implementation

SVGData parse(String text) {
  parseNode(xml.rootElement, {
    "fill": '#000',
    "fillOpacity": 1,
    "strokeOpacity": 1,
    "strokeWidth": 1,
    "strokeLineJoin": 'miter',
    "strokeLineCap": 'butt',
    "strokeMiterLimit": 4
  });
  return SVGData(paths: paths, xml: xml.rootElement);
}