copyWith method

Address copyWith({
  1. String? city,
  2. String? countryCode,
  3. String? country,
  4. String? district,
  5. String? subdistrict,
  6. String? houseNumberOrName,
  7. String? postalCode,
  8. String? state,
  9. String? county,
  10. String? street,
})

Implementation

Address copyWith({
  String? city,
  String? countryCode,
  String? country,
  String? district,
  String? subdistrict,
  String? houseNumberOrName,
  String? postalCode,
  String? state,
  String? county,
  String? street,
}) {
  return Address(
    city: city ?? this.city,
    countryCode: countryCode ?? this.countryCode,
    country: country ?? this.country,
    district: district ?? this.district,
    subdistrict: subdistrict ?? this.subdistrict,
    houseNumberOrName: houseNumberOrName ?? this.houseNumberOrName,
    postalCode: postalCode ?? this.postalCode,
    state: state ?? this.state,
    county: county ?? this.county,
    street: street ?? this.street,
  );
}