copyWith method

RegeocodeAddress copyWith({
  1. String? adCode,
  2. List<Aoi>? aois,
  3. String? building,
  4. List<BusinessAreas>? businessAreas,
  5. String? city,
  6. String? cityCode,
  7. String? country,
  8. List<Crossroad>? crossroads,
  9. String? district,
  10. String? formatAddress,
  11. String? neighborhood,
  12. List<PoiItem>? pois,
  13. String? province,
  14. List<Road>? roads,
  15. StreetNumber? streetNumber,
  16. String? towncode,
  17. String? township,
})

Implementation

RegeocodeAddress copyWith({
  String? adCode,
  List<Aoi>? aois,
  String? building,
  List<BusinessAreas>? businessAreas,
  String? city,
  String? cityCode,
  String? country,
  List<Crossroad>? crossroads,
  String? district,
  String? formatAddress,
  String? neighborhood,
  List<PoiItem>? pois,
  String? province,
  List<Road>? roads,
  StreetNumber? streetNumber,
  String? towncode,
  String? township,
}) {
  return RegeocodeAddress(
    adCode: adCode ?? this.adCode,
    aois: aois ?? this.aois,
    building: building ?? this.building,
    businessAreas: businessAreas ?? this.businessAreas,
    city: city ?? this.city,
    cityCode: cityCode ?? this.cityCode,
    country: country ?? this.country,
    crossroads: crossroads ?? this.crossroads,
    district: district ?? this.district,
    formatAddress: formatAddress ?? this.formatAddress,
    neighborhood: neighborhood ?? this.neighborhood,
    pois: pois ?? this.pois,
    province: province ?? this.province,
    roads: roads ?? this.roads,
    streetNumber: streetNumber ?? this.streetNumber,
    towncode: towncode ?? this.towncode,
    township: township ?? this.township,
  );
}