walkContourAt method
Walk only the contour at index, without sampling the other contours of
the path.
See PathMetricExtension.walkContour for the sampling and the
tolerance parameters.
Implementation
List<Offset> walkContourAt(
int index, [
double sampling = 1.0,
double? tolerance,
]) {
var current = 0;
for (final metric in computeMetrics()) {
if (current == index) {
return metric.walkContour(sampling, tolerance);
}
current++;
}
throw RangeError.index(index, this, 'index', null, current);
}