copyWithWrapped method

PaystubAddress copyWithWrapped({
  1. Wrapped<String?>? city,
  2. Wrapped<String?>? country,
  3. Wrapped<String?>? postalCode,
  4. Wrapped<String?>? region,
  5. Wrapped<String?>? street,
  6. Wrapped<String?>? line1,
  7. Wrapped<String?>? line2,
  8. Wrapped<String?>? stateCode,
})

Implementation

PaystubAddress copyWithWrapped(
    {Wrapped<String?>? city,
    Wrapped<String?>? country,
    Wrapped<String?>? postalCode,
    Wrapped<String?>? region,
    Wrapped<String?>? street,
    Wrapped<String?>? line1,
    Wrapped<String?>? line2,
    Wrapped<String?>? stateCode}) {
  return PaystubAddress(
      city: (city != null ? city.value : this.city),
      country: (country != null ? country.value : this.country),
      postalCode: (postalCode != null ? postalCode.value : this.postalCode),
      region: (region != null ? region.value : this.region),
      street: (street != null ? street.value : this.street),
      line1: (line1 != null ? line1.value : this.line1),
      line2: (line2 != null ? line2.value : this.line2),
      stateCode: (stateCode != null ? stateCode.value : this.stateCode));
}