copyWith method

PlacesResponse copyWith({
  1. List<Prediction>? predictions,
  2. String? status,
})

Implementation

PlacesResponse copyWith({List<Prediction>? predictions, String? status}) {
  return PlacesResponse(
    predictions: predictions ?? this.predictions,
    status: status ?? this.status,
  );
}