poly function

CatalogShape poly(
  1. List<CatalogPoint> points
)

A closed polyline through points.

Implementation

CatalogShape poly(List<CatalogPoint> points) =>
    CatalogPolyline([for (final (x, y) in points) _p(x, y)], closed: true);