copyWith method
Implementation
AddressDTO copyWith(
{double? lat,
double? long,
String? address1,
String? address2,
String? city,
String? state,
String? postalCode,
String? country}) {
return AddressDTO(
lat: lat ?? this.lat,
long: long ?? this.long,
address1: address1 ?? this.address1,
address2: address2 ?? this.address2,
city: city ?? this.city,
state: state ?? this.state,
postalCode: postalCode ?? this.postalCode,
country: country ?? this.country);
}