copyWithWrapped method

UserAddress copyWithWrapped({
  1. Wrapped<String>? street,
  2. Wrapped<String?>? street2,
  3. Wrapped<String>? city,
  4. Wrapped<String>? region,
  5. Wrapped<String>? postalCode,
  6. Wrapped<String>? country,
})

Implementation

UserAddress copyWithWrapped(
    {Wrapped<String>? street,
    Wrapped<String?>? street2,
    Wrapped<String>? city,
    Wrapped<String>? region,
    Wrapped<String>? postalCode,
    Wrapped<String>? country}) {
  return UserAddress(
      street: (street != null ? street.value : this.street),
      street2: (street2 != null ? street2.value : this.street2),
      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));
}