copyWith method
Address
copyWith(
{ - String? city,
- String? countryCode,
- String? country,
- String? district,
- String? subdistrict,
- String? houseNumberOrName,
- String? postalCode,
- String? state,
- String? county,
- 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,
);
}