Adds a new subpath with a sequence of line segments that connect the given
points. If close is true, a final line segment will be added that
connects the last point to the first point.
Source
void addPolygon(List<Point> points, bool close) {
_addPolygon(_encodePointList(points), close);
}