copyWithWrapped method

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

Implementation

Location copyWithWrapped(
    {Wrapped<String?>? address,
    Wrapped<String?>? city,
    Wrapped<String?>? region,
    Wrapped<String?>? postalCode,
    Wrapped<String?>? country,
    Wrapped<double?>? lat,
    Wrapped<double?>? lon,
    Wrapped<String?>? storeNumber}) {
  return Location(
      address: (address != null ? address.value : this.address),
      city: (city != null ? city.value : this.city),
      region: (region != null ? region.value : this.region),
      postalCode: (postalCode != null ? postalCode.value : this.postalCode),
      country: (country != null ? country.value : this.country),
      lat: (lat != null ? lat.value : this.lat),
      lon: (lon != null ? lon.value : this.lon),
      storeNumber:
          (storeNumber != null ? storeNumber.value : this.storeNumber));
}