copyWithWrapped method

TransactionData copyWithWrapped({
  1. Wrapped<String>? description,
  2. Wrapped<double>? amount,
  3. Wrapped<DateTime>? date,
  4. Wrapped<String>? accountId,
  5. Wrapped<String>? transactionId,
})

Implementation

TransactionData copyWithWrapped(
    {Wrapped<String>? description,
    Wrapped<double>? amount,
    Wrapped<DateTime>? date,
    Wrapped<String>? accountId,
    Wrapped<String>? transactionId}) {
  return TransactionData(
      description:
          (description != null ? description.value : this.description),
      amount: (amount != null ? amount.value : this.amount),
      date: (date != null ? date.value : this.date),
      accountId: (accountId != null ? accountId.value : this.accountId),
      transactionId:
          (transactionId != null ? transactionId.value : this.transactionId));
}