copyWith method
Creates a copy of the PlaceState with optional modifications.
Implementation
PlaceState copyWith({
bool? isShow,
String? queryString,
List<Place>? places,
StatusFetchData? status,
String? error,
}) {
return PlaceState(
isShow: isShow ?? this.isShow,
queryString: queryString ?? this.queryString,
places: places ?? this.places,
status: status ?? this.status,
error: error ?? this.error,
);
}