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