copyWith method

PoiItem copyWith({
  1. String? adCode,
  2. String? adName,
  3. String? businessArea,
  4. String? cityCode,
  5. String? cityName,
  6. String? direction,
  7. int? distance,
  8. String? email,
  9. IndoorData? indoorData,
  10. bool? isIndoorMap,
  11. LatLng? latLonPoint,
  12. LatLng? enter,
  13. LatLng? exit,
  14. String? parkingType,
  15. List<Photo>? photos,
  16. PoiExtension? poiExtension,
  17. String? poiId,
  18. String? postcode,
  19. String? provinceCode,
  20. String? provinceName,
  21. String? shopID,
  22. String? snippet,
  23. List<SubPoiItem>? subPois,
  24. String? tel,
  25. String? title,
  26. String? typeCode,
  27. String? typeDes,
  28. String? website,
  29. String? gridCode,
})

Implementation

PoiItem copyWith({
  String? adCode,
  String? adName,
  String? businessArea,
  String? cityCode,
  String? cityName,
  String? direction,
  int? distance,
  String? email,
  IndoorData? indoorData,
  bool? isIndoorMap,
  LatLng? latLonPoint,
  LatLng? enter,
  LatLng? exit,
  String? parkingType,
  List<Photo>? photos,
  PoiExtension? poiExtension,
  String? poiId,
  String? postcode,
  String? provinceCode,
  String? provinceName,
  String? shopID,
  String? snippet,
  List<SubPoiItem>? subPois,
  String? tel,
  String? title,
  String? typeCode,
  String? typeDes,
  String? website,
  String? gridCode,
}) {
  return PoiItem(
    adCode: adCode ?? this.adCode,
    adName: adName ?? this.adName,
    businessArea: businessArea ?? this.businessArea,
    cityCode: cityCode ?? this.cityCode,
    cityName: cityName ?? this.cityName,
    direction: direction ?? this.direction,
    distance: distance ?? this.distance,
    email: email ?? this.email,
    indoorData: indoorData ?? this.indoorData,
    isIndoorMap: isIndoorMap ?? this.isIndoorMap,
    latLonPoint: latLonPoint ?? this.latLonPoint,
    enter: enter ?? this.enter,
    exit: exit ?? this.exit,
    parkingType: parkingType ?? this.parkingType,
    photos: photos ?? this.photos,
    poiExtension: poiExtension ?? this.poiExtension,
    poiId: poiId ?? this.poiId,
    postcode: postcode ?? this.postcode,
    provinceCode: provinceCode ?? this.provinceCode,
    provinceName: provinceName ?? this.provinceName,
    shopID: shopID ?? this.shopID,
    snippet: snippet ?? this.snippet,
    subPois: subPois ?? this.subPois,
    tel: tel ?? this.tel,
    title: title ?? this.title,
    typeCode: typeCode ?? this.typeCode,
    typeDes: typeDes ?? this.typeDes,
    website: website ?? this.website,
    gridCode: gridCode ?? this.gridCode,
  );
}