pathStringToMobject method

VMobject pathStringToMobject(
  1. String pathString,
  2. SVGElementStyle style, [
  3. Element? element
])

Implementation

VMobject pathStringToMobject(String pathString, SVGElementStyle style,
    [Element? element]) {
  var mob = SVGPathMobject(pathString);

  if (element != null) {
    return applyStyle(style.update(getElementStyle(element)), mob);
  } else {
    return applyStyle(style, mob);
  }
}