copyWith method
Implementation
Address copyWith({
String? address1,
String? address2,
String? city,
String? state,
String? postalCode,
String? country,
dynamic location,
}) {
return Address(
address1: address1 ?? this.address1,
address2: address2 ?? this.address2,
city: city ?? this.city,
state: state ?? this.state,
postalCode: postalCode ?? this.postalCode,
country: country ?? this.country,
location: location ?? this.location,
);
}