InvalidPolygonException.tooFewVertices constructor
InvalidPolygonException.tooFewVertices(
- int count
Creates an exception for insufficient vertices.
Implementation
factory InvalidPolygonException.tooFewVertices(int count) {
return InvalidPolygonException(
'Polygon must have at least 3 vertices. Got: $count',
vertexCount: count,
code: 'TOO_FEW_VERTICES',
);
}