copyWith method
LocationState
copyWith({
- LocationStateStatus? status,
- CurrentUserLocationEntity? currentUserLocation,
- LatLng? initLocation,
- Location? location,
- 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,
);
}