LocationState constructor
const
LocationState({
- LocationStateStatus status = LocationStateStatus.initial,
- LatLng? initLocation,
- CurrentUserLocationEntity? currentUserLocation,
- String? errorMessage,
Implementation
const LocationState({
this.status = LocationStateStatus.initial,
LatLng? initLocation,
CurrentUserLocationEntity? currentUserLocation,
String? errorMessage,
}) : currentUserLocation =
currentUserLocation ?? CurrentUserLocationEntity.empty,
initLocation = initLocation ?? const LatLng(40.4167, -3.70325),
errorMessage = errorMessage ?? '';