copyWithWrapped method

ShopifySharpPrice copyWithWrapped({
  1. Wrapped<String?>? currencyCode,
  2. Wrapped<double?>? amount,
})

Implementation

ShopifySharpPrice copyWithWrapped({
  Wrapped<String?>? currencyCode,
  Wrapped<double?>? amount,
}) {
  return ShopifySharpPrice(
    currencyCode: (currencyCode != null
        ? currencyCode.value
        : this.currencyCode),
    amount: (amount != null ? amount.value : this.amount),
  );
}