InvalidPolygonException.selfIntersecting constructor
InvalidPolygonException.selfIntersecting()
Creates an exception for self-intersecting polygon.
Implementation
factory InvalidPolygonException.selfIntersecting() {
return InvalidPolygonException(
'Polygon has self-intersecting edges',
code: 'SELF_INTERSECTING',
);
}