extractPath method

Path extractPath (double start, double end, { bool startWithMoveTo: true })

Given a start and stop distance, return the intervening segment(s).

start and end are pinned to legal values (0..length) Returns null if the segment is 0 length or start > stop. Begin the segment with a moveTo if startWithMoveTo is true.

Implementation

Path extractPath(double start, double end, {bool startWithMoveTo: true}) {
  if (contourIndex != _measure.currentContourIndex) {
    throw StateError('This method cannot be invoked once the underlying iterator has advanced.');
  }
  return _measure.extractPath(start, end, startWithMoveTo: startWithMoveTo);
}