copyWith method

PoiResult copyWith({
  1. int? pageCount,
  2. List<PoiItem>? pois,
  3. Query? query,
  4. List<SuggestionCity>? searchSuggestionCitys,
  5. List<String>? searchSuggestionKeywords,
})

Implementation

PoiResult copyWith({
  int? pageCount,
  List<PoiItem>? pois,
  Query? query,
  List<SuggestionCity>? searchSuggestionCitys,
  List<String>? searchSuggestionKeywords,
}) {
  return PoiResult(
    pageCount: pageCount ?? this.pageCount,
    pois: pois ?? this.pois,
    query: query ?? this.query,
    searchSuggestionCitys: searchSuggestionCitys ?? this.searchSuggestionCitys,
    searchSuggestionKeywords: searchSuggestionKeywords ?? this.searchSuggestionKeywords,
  );
}