GeoformBloc<U extends GeoformMarkerDatum> constructor

GeoformBloc<U extends GeoformMarkerDatum>({
  1. String? regionName,
  2. MapProvider? mapProvider,
  3. List<U>? markers,
  4. List<FastPolygon>? polygonsToDraw,
  5. List<CircleMarker>? circlesToDraw,
  6. LatLng? mapPosition,
})

Implementation

GeoformBloc({
  String? regionName,
  MapProvider? mapProvider,
  List<U>? markers,
  List<FastPolygon>? polygonsToDraw,
  List<CircleMarker>? circlesToDraw,
  LatLng? mapPosition,
}) : super(
        GeoformState<U>._(
          regionName: regionName,
          mapProvider: mapProvider ?? MapProvider.openStreetMap,
          markers: markers ?? [],
          polygonsToDraw: polygonsToDraw ?? [],
          circlesToDraw: circlesToDraw ?? [],
          mapPosition: mapPosition,
        ),
      ) {
  on<ManualChanged>(_onManualChanged);
  on<GeoformOnTap>(_onGeoformOnTap);
  on<AddRegion>(_onAddRegion);
  on<InitLocationService>(_initLocationService);
  on<UpdateMarkers<U>>(_onChangeMarkers);
  on<UpdatePolygons>(_onChangePolygons);
  on<UpdateCircles>(_onChangeCircles);
  on<ChangeActivateAction>(_onActivateAction);
  on<SelectMarker<U>>(_selectDatum);
  on<UpdateMapPosition>(_updateMapPosition);
}