copyWith method
CreditBankIncomeSource
copyWith({
- String? incomeSourceId,
- String? incomeDescription,
- CreditBankIncomeCategory? incomeCategory,
- String? accountId,
- DateTime? startDate,
- DateTime? endDate,
- CreditBankIncomePayFrequency? payFrequency,
- double? totalAmount,
- int? transactionCount,
- List<
CreditBankIncomeHistoricalSummary> ? historicalSummary,
Implementation
CreditBankIncomeSource copyWith(
{String? incomeSourceId,
String? incomeDescription,
enums.CreditBankIncomeCategory? incomeCategory,
String? accountId,
DateTime? startDate,
DateTime? endDate,
enums.CreditBankIncomePayFrequency? payFrequency,
double? totalAmount,
int? transactionCount,
List<CreditBankIncomeHistoricalSummary>? historicalSummary}) {
return CreditBankIncomeSource(
incomeSourceId: incomeSourceId ?? this.incomeSourceId,
incomeDescription: incomeDescription ?? this.incomeDescription,
incomeCategory: incomeCategory ?? this.incomeCategory,
accountId: accountId ?? this.accountId,
startDate: startDate ?? this.startDate,
endDate: endDate ?? this.endDate,
payFrequency: payFrequency ?? this.payFrequency,
totalAmount: totalAmount ?? this.totalAmount,
transactionCount: transactionCount ?? this.transactionCount,
historicalSummary: historicalSummary ?? this.historicalSummary);
}