getPathLengthSum static method

double getPathLengthSum(
  1. Drawable drawable
)

Computes the total length of paths in SVG.

Implementation

static double getPathLengthSum(Drawable drawable) {
  final c = MeasurePathLengthCanvas();
  // TODO: pass proper values to bounds.
  drawable.draw(c, const Rect.fromLTRB(0, 0, 1, 1));
  return c.pathLengthSum;
}