copyWith method
ShopifySharpLineItem
copyWith({
- int? fulfillableQuantity,
- String? fulfillmentService,
- String? fulfillmentStatus,
- int? grams,
- double? price,
- int? productId,
- int? quantity,
- bool? requiresShipping,
- String? sku,
- String? title,
- int? variantId,
- String? variantTitle,
- String? name,
- String? vendor,
- bool? giftCard,
- bool? taxable,
- List<
ShopifySharpTaxLine> ? taxLines, - String? tipPaymentGateway,
- String? tipPaymentMethod,
- double? totalDiscount,
- ShopifySharpPriceSet? totalDiscountSet,
- List<
ShopifySharpDiscountAllocation> ? discountAllocations, - List<
ShopifySharpLineItemProperty> ? properties, - String? variantInventoryManagement,
- bool? productExists,
- ShopifySharpPriceSet? priceSet,
- double? preTaxPrice,
- ShopifySharpPriceSet? preTaxPriceSet,
- List<
ShopifySharpLineItemDuty> ? duties, - int? fulfillmentLineItemId,
- List<
ShopifySharpLineItemAttributedStaff> ? attributedStaffs, - int? id,
- String? adminGraphqlApiId,
Implementation
ShopifySharpLineItem copyWith({
int? fulfillableQuantity,
String? fulfillmentService,
String? fulfillmentStatus,
int? grams,
double? price,
int? productId,
int? quantity,
bool? requiresShipping,
String? sku,
String? title,
int? variantId,
String? variantTitle,
String? name,
String? vendor,
bool? giftCard,
bool? taxable,
List<ShopifySharpTaxLine>? taxLines,
String? tipPaymentGateway,
String? tipPaymentMethod,
double? totalDiscount,
ShopifySharpPriceSet? totalDiscountSet,
List<ShopifySharpDiscountAllocation>? discountAllocations,
List<ShopifySharpLineItemProperty>? properties,
String? variantInventoryManagement,
bool? productExists,
ShopifySharpPriceSet? priceSet,
double? preTaxPrice,
ShopifySharpPriceSet? preTaxPriceSet,
List<ShopifySharpLineItemDuty>? duties,
int? fulfillmentLineItemId,
List<ShopifySharpLineItemAttributedStaff>? attributedStaffs,
int? id,
String? adminGraphqlApiId,
}) {
return ShopifySharpLineItem(
fulfillableQuantity: fulfillableQuantity ?? this.fulfillableQuantity,
fulfillmentService: fulfillmentService ?? this.fulfillmentService,
fulfillmentStatus: fulfillmentStatus ?? this.fulfillmentStatus,
grams: grams ?? this.grams,
price: price ?? this.price,
productId: productId ?? this.productId,
quantity: quantity ?? this.quantity,
requiresShipping: requiresShipping ?? this.requiresShipping,
sku: sku ?? this.sku,
title: title ?? this.title,
variantId: variantId ?? this.variantId,
variantTitle: variantTitle ?? this.variantTitle,
name: name ?? this.name,
vendor: vendor ?? this.vendor,
giftCard: giftCard ?? this.giftCard,
taxable: taxable ?? this.taxable,
taxLines: taxLines ?? this.taxLines,
tipPaymentGateway: tipPaymentGateway ?? this.tipPaymentGateway,
tipPaymentMethod: tipPaymentMethod ?? this.tipPaymentMethod,
totalDiscount: totalDiscount ?? this.totalDiscount,
totalDiscountSet: totalDiscountSet ?? this.totalDiscountSet,
discountAllocations: discountAllocations ?? this.discountAllocations,
properties: properties ?? this.properties,
variantInventoryManagement:
variantInventoryManagement ?? this.variantInventoryManagement,
productExists: productExists ?? this.productExists,
priceSet: priceSet ?? this.priceSet,
preTaxPrice: preTaxPrice ?? this.preTaxPrice,
preTaxPriceSet: preTaxPriceSet ?? this.preTaxPriceSet,
duties: duties ?? this.duties,
fulfillmentLineItemId:
fulfillmentLineItemId ?? this.fulfillmentLineItemId,
attributedStaffs: attributedStaffs ?? this.attributedStaffs,
id: id ?? this.id,
adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
);
}