polygon method

Polygon<PointType> polygon(
  1. Iterable rings
)

Parses a polygon from a series of rings (closed and simple line strings).

Throws FormatException if cannot create a polygon.

Implementation

Polygon<PointType> polygon(Iterable<dynamic> rings) =>
    Polygon<PointType>(lineStringSeries(rings, type: LineStringType.ring));