copyWith method

CreditBankIncome copyWith({
  1. String? bankIncomeId,
  2. DateTime? generatedTime,
  3. int? daysRequested,
  4. List<CreditBankIncomeItem>? items,
  5. CreditBankIncomeSummary? bankIncomeSummary,
  6. List<CreditBankIncomeWarning>? warnings,
})

Implementation

CreditBankIncome copyWith(
    {String? bankIncomeId,
    DateTime? generatedTime,
    int? daysRequested,
    List<CreditBankIncomeItem>? items,
    CreditBankIncomeSummary? bankIncomeSummary,
    List<CreditBankIncomeWarning>? warnings}) {
  return CreditBankIncome(
      bankIncomeId: bankIncomeId ?? this.bankIncomeId,
      generatedTime: generatedTime ?? this.generatedTime,
      daysRequested: daysRequested ?? this.daysRequested,
      items: items ?? this.items,
      bankIncomeSummary: bankIncomeSummary ?? this.bankIncomeSummary,
      warnings: warnings ?? this.warnings);
}