copyWith method

CreditBankIncomeCause copyWith({
  1. CreditBankIncomeErrorType? errorType,
  2. String? errorCode,
  3. String? errorMessage,
  4. String? displayMessage,
  5. String? itemId,
})

Implementation

CreditBankIncomeCause copyWith(
    {enums.CreditBankIncomeErrorType? errorType,
    String? errorCode,
    String? errorMessage,
    String? displayMessage,
    String? itemId}) {
  return CreditBankIncomeCause(
      errorType: errorType ?? this.errorType,
      errorCode: errorCode ?? this.errorCode,
      errorMessage: errorMessage ?? this.errorMessage,
      displayMessage: displayMessage ?? this.displayMessage,
      itemId: itemId ?? this.itemId);
}