copyWith method
Implementation
Location copyWith(
{String? address,
String? city,
String? region,
String? postalCode,
String? country,
double? lat,
double? lon,
String? storeNumber}) {
return Location(
address: address ?? this.address,
city: city ?? this.city,
region: region ?? this.region,
postalCode: postalCode ?? this.postalCode,
country: country ?? this.country,
lat: lat ?? this.lat,
lon: lon ?? this.lon,
storeNumber: storeNumber ?? this.storeNumber);
}