Whether poly is a closed polygon (first == last).
poly
bool isClosedPolygon(List<Point<double>> poly) => PolyUtils.isClosedPolygon(poly);