copyWith method

Location copyWith({
  1. String? address,
  2. String? city,
  3. String? region,
  4. String? postalCode,
  5. String? country,
  6. double? lat,
  7. double? lon,
  8. String? storeNumber,
})

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);
}