GeoformBloc<U extends GeoformMarkerDatum> constructor
GeoformBloc<U extends GeoformMarkerDatum> ({
- String? regionName,
- MapProvider? mapProvider,
- List<
U> ? markers, - List<
FastPolygon> ? polygonsToDraw, - List<
CircleMarker> ? circlesToDraw, - 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);
}