copyWith method
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,
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,
);
}