copyWith method
Implementation
AddressData copyWith(
{String? city,
String? region,
String? street,
String? postalCode,
String? country}) {
return AddressData(
city: city ?? this.city,
region: region ?? this.region,
street: street ?? this.street,
postalCode: postalCode ?? this.postalCode,
country: country ?? this.country);
}