copyWithWrapped method

ShopifySharpAddress copyWithWrapped({
  1. Wrapped<String?>? address1,
  2. Wrapped<String?>? address2,
  3. Wrapped<String?>? city,
  4. Wrapped<String?>? company,
  5. Wrapped<String?>? country,
  6. Wrapped<String?>? countryCode,
  7. Wrapped<String?>? countryName,
  8. Wrapped<bool?>? $default,
  9. Wrapped<String?>? firstName,
  10. Wrapped<String?>? lastName,
  11. Wrapped<double?>? latitude,
  12. Wrapped<double?>? longitude,
  13. Wrapped<String?>? name,
  14. Wrapped<String?>? phone,
  15. Wrapped<String?>? province,
  16. Wrapped<String?>? provinceCode,
  17. Wrapped<String?>? zip,
  18. Wrapped<int?>? id,
  19. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpAddress copyWithWrapped({
  Wrapped<String?>? address1,
  Wrapped<String?>? address2,
  Wrapped<String?>? city,
  Wrapped<String?>? company,
  Wrapped<String?>? country,
  Wrapped<String?>? countryCode,
  Wrapped<String?>? countryName,
  Wrapped<bool?>? $default,
  Wrapped<String?>? firstName,
  Wrapped<String?>? lastName,
  Wrapped<double?>? latitude,
  Wrapped<double?>? longitude,
  Wrapped<String?>? name,
  Wrapped<String?>? phone,
  Wrapped<String?>? province,
  Wrapped<String?>? provinceCode,
  Wrapped<String?>? zip,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpAddress(
    address1: (address1 != null ? address1.value : this.address1),
    address2: (address2 != null ? address2.value : this.address2),
    city: (city != null ? city.value : this.city),
    company: (company != null ? company.value : this.company),
    country: (country != null ? country.value : this.country),
    countryCode: (countryCode != null ? countryCode.value : this.countryCode),
    countryName: (countryName != null ? countryName.value : this.countryName),
    $default: ($default != null ? $default.value : this.$default),
    firstName: (firstName != null ? firstName.value : this.firstName),
    lastName: (lastName != null ? lastName.value : this.lastName),
    latitude: (latitude != null ? latitude.value : this.latitude),
    longitude: (longitude != null ? longitude.value : this.longitude),
    name: (name != null ? name.value : this.name),
    phone: (phone != null ? phone.value : this.phone),
    province: (province != null ? province.value : this.province),
    provinceCode: (provinceCode != null
        ? provinceCode.value
        : this.provinceCode),
    zip: (zip != null ? zip.value : this.zip),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}