parse method

SVGData parse(
  1. dynamic text
)

Implementation

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

  return SVGData(paths: paths, xml: xml.documentElement);
}