LocationState constructor

const LocationState({
  1. LocationStateStatus status = LocationStateStatus.initial,
  2. LatLng? initLocation,
  3. CurrentUserLocationEntity? currentUserLocation,
  4. 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 ?? '';