toGoogleMapsPolygonSet static method

Set<Polygon> toGoogleMapsPolygonSet(
  1. Set<Polygon> polygons
)

Implementation

static Set<googleMaps.Polygon> toGoogleMapsPolygonSet(Set<Polygon> polygons) {
  List<googleMaps.Polygon> _polygons = <googleMaps.Polygon>[];
  for (Polygon polygon in polygons) {
    _polygons.add(polygon.googleMapsPolygon);
  }
  return Set.from(_polygons);
}