copyWithWrapped method

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

Implementation

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