copyWith method

CreditBankIncomeSummary copyWith({
  1. double? totalAmount,
  2. String? isoCurrencyCode,
  3. String? unofficialCurrencyCode,
  4. DateTime? startDate,
  5. DateTime? endDate,
  6. int? incomeSourcesCount,
  7. int? incomeCategoriesCount,
  8. int? incomeTransactionsCount,
  9. List<CreditBankIncomeHistoricalSummary>? historicalSummary,
})

Implementation

CreditBankIncomeSummary copyWith(
    {double? totalAmount,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode,
    DateTime? startDate,
    DateTime? endDate,
    int? incomeSourcesCount,
    int? incomeCategoriesCount,
    int? incomeTransactionsCount,
    List<CreditBankIncomeHistoricalSummary>? historicalSummary}) {
  return CreditBankIncomeSummary(
      totalAmount: totalAmount ?? this.totalAmount,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode,
      startDate: startDate ?? this.startDate,
      endDate: endDate ?? this.endDate,
      incomeSourcesCount: incomeSourcesCount ?? this.incomeSourcesCount,
      incomeCategoriesCount:
          incomeCategoriesCount ?? this.incomeCategoriesCount,
      incomeTransactionsCount:
          incomeTransactionsCount ?? this.incomeTransactionsCount,
      historicalSummary: historicalSummary ?? this.historicalSummary);
}