copyWith method

ShopifySharpShippingLine copyWith({
  1. String? carrierIdentifier,
  2. String? code,
  3. bool? isRemoved,
  4. String? phone,
  5. double? price,
  6. double? discountedPrice,
  7. List<ShopifySharpDiscountAllocation>? discountAllocations,
  8. String? source,
  9. String? title,
  10. List<ShopifySharpTaxLine>? taxLines,
  11. ShopifySharpPriceSet? priceSet,
  12. ShopifySharpPriceSet? discountedPriceSet,
  13. int? id,
  14. 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,
  );
}