toPolygon method

Polygon toPolygon()

Convert this rectangle to a Polygon

Implementation

Polygon toPolygon() => Polygon(vertices);