MapController.seeded constructor

  1. @override
MapController.seeded(
  1. MapResponse mapResponse
)

Implementation

@override
factory MapController.seeded(MapResponse mapResponse) {
  MapController mapController = MapController();
  mapController.obs = BehaviorSubject<MapResponse>.seeded(mapResponse);
  mapController.current = BehaviorSubject<MapResponse>.seeded(mapResponse);
  return mapController;
}