copyWith method

CreditSessionResults copyWith({
  1. List<CreditSessionItemAddResult>? itemAddResults,
  2. List<CreditSessionBankIncomeResult>? bankIncomeResults,
  3. List<CreditSessionPayrollIncomeResult>? payrollIncomeResults,
  4. CreditSessionDocumentIncomeResult? documentIncomeResults,
})

Implementation

CreditSessionResults copyWith(
    {List<CreditSessionItemAddResult>? itemAddResults,
    List<CreditSessionBankIncomeResult>? bankIncomeResults,
    List<CreditSessionPayrollIncomeResult>? payrollIncomeResults,
    CreditSessionDocumentIncomeResult? documentIncomeResults}) {
  return CreditSessionResults(
      itemAddResults: itemAddResults ?? this.itemAddResults,
      bankIncomeResults: bankIncomeResults ?? this.bankIncomeResults,
      payrollIncomeResults: payrollIncomeResults ?? this.payrollIncomeResults,
      documentIncomeResults:
          documentIncomeResults ?? this.documentIncomeResults);
}