computeMetrics method

PathMetrics computeMetrics ({bool forceClosed: false })

Creates a PathMetrics object for this path.

If forceClosed is set to true, the contours of the path will be measured as if they had been closed, even if they were not explicitly closed.

Implementation

PathMetrics computeMetrics({bool forceClosed: false}) {
  return new PathMetrics._(this, forceClosed);
}