copyWith method

CreditBankIncomeItem copyWith({
  1. List<CreditBankIncomeAccount>? bankIncomeAccounts,
  2. List<CreditBankIncomeSource>? bankIncomeSources,
  3. DateTime? lastUpdatedTime,
  4. String? institutionId,
  5. String? institutionName,
  6. String? itemId,
})

Implementation

CreditBankIncomeItem copyWith(
    {List<CreditBankIncomeAccount>? bankIncomeAccounts,
    List<CreditBankIncomeSource>? bankIncomeSources,
    DateTime? lastUpdatedTime,
    String? institutionId,
    String? institutionName,
    String? itemId}) {
  return CreditBankIncomeItem(
      bankIncomeAccounts: bankIncomeAccounts ?? this.bankIncomeAccounts,
      bankIncomeSources: bankIncomeSources ?? this.bankIncomeSources,
      lastUpdatedTime: lastUpdatedTime ?? this.lastUpdatedTime,
      institutionId: institutionId ?? this.institutionId,
      institutionName: institutionName ?? this.institutionName,
      itemId: itemId ?? this.itemId);
}