copyWith method

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

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);
}