copyWith method
ShopifySharpShippingLine
copyWith({
- String? carrierIdentifier,
- String? code,
- bool? isRemoved,
- String? phone,
- double? price,
- double? discountedPrice,
- List<
ShopifySharpDiscountAllocation> ? discountAllocations, - String? source,
- String? title,
- List<
ShopifySharpTaxLine> ? taxLines, - ShopifySharpPriceSet? priceSet,
- ShopifySharpPriceSet? discountedPriceSet,
- int? id,
- String? adminGraphqlApiId,
Implementation
ShopifySharpShippingLine copyWith({
String? carrierIdentifier,
String? code,
bool? isRemoved,
String? phone,
double? price,
double? discountedPrice,
List<ShopifySharpDiscountAllocation>? discountAllocations,
String? source,
String? title,
List<ShopifySharpTaxLine>? taxLines,
ShopifySharpPriceSet? priceSet,
ShopifySharpPriceSet? discountedPriceSet,
int? id,
String? adminGraphqlApiId,
}) {
return ShopifySharpShippingLine(
carrierIdentifier: carrierIdentifier ?? this.carrierIdentifier,
code: code ?? this.code,
isRemoved: isRemoved ?? this.isRemoved,
phone: phone ?? this.phone,
price: price ?? this.price,
discountedPrice: discountedPrice ?? this.discountedPrice,
discountAllocations: discountAllocations ?? this.discountAllocations,
source: source ?? this.source,
title: title ?? this.title,
taxLines: taxLines ?? this.taxLines,
priceSet: priceSet ?? this.priceSet,
discountedPriceSet: discountedPriceSet ?? this.discountedPriceSet,
id: id ?? this.id,
adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
);
}