animateCoderPath method
Implementation
animateCoderPath(Path path, Paint paint, Canvas canvas, double progress) {
PathMetrics shadowMetrics = path.computeMetrics();
for (PathMetric pathMetric in shadowMetrics) {
Path extractPath = pathMetric.extractPath(
0.0,
pathMetric.length * progress,
);
canvas.drawPath(extractPath, paint);
}
}