copyWith method

ShopifySharpLineItem copyWith({
  1. int? fulfillableQuantity,
  2. String? fulfillmentService,
  3. String? fulfillmentStatus,
  4. int? grams,
  5. double? price,
  6. int? productId,
  7. int? quantity,
  8. bool? requiresShipping,
  9. String? sku,
  10. String? title,
  11. int? variantId,
  12. String? variantTitle,
  13. String? name,
  14. String? vendor,
  15. bool? giftCard,
  16. bool? taxable,
  17. List<ShopifySharpTaxLine>? taxLines,
  18. String? tipPaymentGateway,
  19. String? tipPaymentMethod,
  20. double? totalDiscount,
  21. ShopifySharpPriceSet? totalDiscountSet,
  22. List<ShopifySharpDiscountAllocation>? discountAllocations,
  23. List<ShopifySharpLineItemProperty>? properties,
  24. String? variantInventoryManagement,
  25. bool? productExists,
  26. ShopifySharpPriceSet? priceSet,
  27. double? preTaxPrice,
  28. ShopifySharpPriceSet? preTaxPriceSet,
  29. List<ShopifySharpLineItemDuty>? duties,
  30. int? fulfillmentLineItemId,
  31. List<ShopifySharpLineItemAttributedStaff>? attributedStaffs,
  32. int? id,
  33. 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,
  );
}