copyWithWrapped method

TransactionOverride copyWithWrapped({
  1. Wrapped<DateTime>? dateTransacted,
  2. Wrapped<DateTime>? datePosted,
  3. Wrapped<double>? amount,
  4. Wrapped<String>? description,
  5. Wrapped<String?>? currency,
})

Implementation

TransactionOverride copyWithWrapped(
    {Wrapped<DateTime>? dateTransacted,
    Wrapped<DateTime>? datePosted,
    Wrapped<double>? amount,
    Wrapped<String>? description,
    Wrapped<String?>? currency}) {
  return TransactionOverride(
      dateTransacted: (dateTransacted != null
          ? dateTransacted.value
          : this.dateTransacted),
      datePosted: (datePosted != null ? datePosted.value : this.datePosted),
      amount: (amount != null ? amount.value : this.amount),
      description:
          (description != null ? description.value : this.description),
      currency: (currency != null ? currency.value : this.currency));
}