extractPartialPath static method

Path extractPartialPath(
  1. PathMetric metric,
  2. double begin,
  3. double end
)

Implementation

static Path extractPartialPath(PathMetric metric, double begin, double end) {
  if (begin <= 0.0 && end >= metric.length) {
    return metric.extractPath(
      begin,
      end,
    )..close();
  }
  return metric.extractPath(
    begin,
    end,
  );
}