copyWithWrapped method

AddressDTO copyWithWrapped({
  1. Wrapped<double?>? lat,
  2. Wrapped<double?>? long,
  3. Wrapped<String?>? address1,
  4. Wrapped<String?>? address2,
  5. Wrapped<String?>? city,
  6. Wrapped<String?>? state,
  7. Wrapped<String?>? postalCode,
  8. Wrapped<String?>? country,
})

Implementation

AddressDTO copyWithWrapped(
    {Wrapped<double?>? lat,
    Wrapped<double?>? long,
    Wrapped<String?>? address1,
    Wrapped<String?>? address2,
    Wrapped<String?>? city,
    Wrapped<String?>? state,
    Wrapped<String?>? postalCode,
    Wrapped<String?>? country}) {
  return AddressDTO(
      lat: (lat != null ? lat.value : this.lat),
      long: (long != null ? long.value : this.long),
      address1: (address1 != null ? address1.value : this.address1),
      address2: (address2 != null ? address2.value : this.address2),
      city: (city != null ? city.value : this.city),
      state: (state != null ? state.value : this.state),
      postalCode: (postalCode != null ? postalCode.value : this.postalCode),
      country: (country != null ? country.value : this.country));
}