copyWithWrapped method

ShopifySharpPriceSet copyWithWrapped({
  1. Wrapped<ShopifySharpPrice?>? shopMoney,
  2. Wrapped<ShopifySharpPrice?>? presentmentMoney,
})

Implementation

ShopifySharpPriceSet copyWithWrapped({
  Wrapped<ShopifySharpPrice?>? shopMoney,
  Wrapped<ShopifySharpPrice?>? presentmentMoney,
}) {
  return ShopifySharpPriceSet(
    shopMoney: (shopMoney != null ? shopMoney.value : this.shopMoney),
    presentmentMoney: (presentmentMoney != null
        ? presentmentMoney.value
        : this.presentmentMoney),
  );
}