copyWithWrapped method

ShopifySharpTaxLine copyWithWrapped({
  1. Wrapped<double?>? price,
  2. Wrapped<double?>? rate,
  3. Wrapped<String?>? title,
  4. Wrapped<ShopifySharpPriceSet?>? priceSet,
})

Implementation

ShopifySharpTaxLine copyWithWrapped({
  Wrapped<double?>? price,
  Wrapped<double?>? rate,
  Wrapped<String?>? title,
  Wrapped<ShopifySharpPriceSet?>? priceSet,
}) {
  return ShopifySharpTaxLine(
    price: (price != null ? price.value : this.price),
    rate: (rate != null ? rate.value : this.rate),
    title: (title != null ? title.value : this.title),
    priceSet: (priceSet != null ? priceSet.value : this.priceSet),
  );
}