contourIndex property

int contourIndex
final

The zero-based index of the contour.

Path objects are made up of zero or more contours. The first contour is created once a drawing command (e.g. Path.lineTo) is issued. A Path.moveTo command after a drawing command may create a new contour, although it may not if optimizations are applied that determine the move command did not actually result in moving the pen.

This property is only valid with reference to its original iterator. If getTangetForOffset or extractPath are called when this property does not match the actual count of the iterator, those methods will throw a StateError.

Implementation

final int contourIndex