addPolygons method

Future<List<Polygon?>> addPolygons(
  1. List<PolygonOptions> polygonOptions
)

Add polygons to the map view.

Implementation

Future<List<Polygon?>> addPolygons(List<PolygonOptions> polygonOptions) {
  return GoogleMapsNavigationPlatform.instance.viewAPI.addPolygons(
    viewId: _viewId,
    polygonOptions: polygonOptions,
  );
}