GeoformState.initial constructor

GeoformState.initial({
  1. String? regionName,
  2. MapProvider? mapProvider,
  3. LatLng? initialPosition,
  4. required AnimationController animationController,
})

Implementation

GeoformState.initial({
  String? regionName,
  MapProvider? mapProvider,
  LatLng? initialPosition,
  required AnimationController animationController,
}) : this._(
        context: GeoformContext(
          currentUserPosition: LatLng(0.01, 0.01),
          currentMapPosition: LatLng(0.01, 0.01),
        ),
        animationController: animationController,
        mapController: MapController(),
        currentMapPosition: initialPosition ?? LatLng(50, 50),
        regionName: regionName,
        mapProvider: mapProvider ?? MapProvider.openStreetMap,
      );