copyWithWrapped method
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,
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),
);
}