copyWith method
Implementation
TransactionData copyWith(
{String? description,
double? amount,
DateTime? date,
String? accountId,
String? transactionId}) {
return TransactionData(
description: description ?? this.description,
amount: amount ?? this.amount,
date: date ?? this.date,
accountId: accountId ?? this.accountId,
transactionId: transactionId ?? this.transactionId);
}