copyWith method

TransactionOverride copyWith({
  1. String? dateTransacted,
  2. String? datePosted,
  3. double? amount,
  4. String? description,
  5. String? currency,
})

Implementation

TransactionOverride copyWith(
    {String? dateTransacted,
    String? datePosted,
    double? amount,
    String? description,
    String? currency}) {
  return TransactionOverride(
      dateTransacted: dateTransacted ?? this.dateTransacted,
      datePosted: datePosted ?? this.datePosted,
      amount: amount ?? this.amount,
      description: description ?? this.description,
      currency: currency ?? this.currency);
}