MarkersController constructor

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

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

Implementation

MarkersController({
  required StreamController<MapEvent<Object?>> stream,
})  : _streamController = stream,
      _markerIdToController = <MarkerId, MarkerController>{};