PolygonsController constructor

PolygonsController({
  1. required StreamController<MapEvent<Object?>> stream,
})

Initializes the cache. The StreamController comes from the GoogleMapController, and is shared with other controllers.

Implementation

PolygonsController({required StreamController<MapEvent<Object?>> stream})
  : _streamController = stream,
    _polygonIdToController = <PolygonId, PolygonController>{};