copyWith method

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

Implementation

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