copyWith method

GeocodeAddressList copyWith({
  1. String? adcode,
  2. String? building,
  3. String? city,
  4. String? district,
  5. String? formatAddress,
  6. LatLng? latLng,
  7. String? level,
  8. String? neighborhood,
  9. String? province,
  10. String? township,
})

Implementation

GeocodeAddressList copyWith({
  String? adcode,
  String? building,
  String? city,
  String? district,
  String? formatAddress,
  LatLng? latLng,
  String? level,
  String? neighborhood,
  String? province,
  String? township,
}) {
  return GeocodeAddressList(
    adcode: adcode ?? this.adcode,
    building: building ?? this.building,
    city: city ?? this.city,
    district: district ?? this.district,
    formatAddress: formatAddress ?? this.formatAddress,
    latLng: latLng ?? this.latLng,
    level: level ?? this.level,
    neighborhood: neighborhood ?? this.neighborhood,
    province: province ?? this.province,
    township: township ?? this.township,
  );
}