copyWith method

LocationState copyWith({
  1. LocationStateStatus? status,
  2. CurrentUserLocationEntity? currentUserLocation,
  3. LatLng? initLocation,
  4. Location? location,
  5. String? errorMessage,
})

Implementation

LocationState copyWith({
  LocationStateStatus? status,
  CurrentUserLocationEntity? currentUserLocation,
  LatLng? initLocation,
  Location? location,
  String? errorMessage,
}) {
  return LocationState(
    status: status ?? this.status,
    currentUserLocation: currentUserLocation ?? this.currentUserLocation,
    initLocation: initLocation ?? this.initLocation,
    errorMessage: errorMessage ?? this.errorMessage,
  );
}