copyWith method

CreditBankIncomeTransaction copyWith({
  1. double? amount,
  2. DateTime? date,
  3. String? name,
  4. String? originalDescription,
  5. bool? pending,
  6. String? transactionId,
  7. String? checkNumber,
  8. String? isoCurrencyCode,
  9. String? unofficialCurrencyCode,
})

Implementation

CreditBankIncomeTransaction copyWith(
    {double? amount,
    DateTime? date,
    String? name,
    String? originalDescription,
    bool? pending,
    String? transactionId,
    String? checkNumber,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode}) {
  return CreditBankIncomeTransaction(
      amount: amount ?? this.amount,
      date: date ?? this.date,
      name: name ?? this.name,
      originalDescription: originalDescription ?? this.originalDescription,
      pending: pending ?? this.pending,
      transactionId: transactionId ?? this.transactionId,
      checkNumber: checkNumber ?? this.checkNumber,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode);
}