copyWith method

Cause copyWith({
  1. String? itemId,
  2. PlaidErrorType? errorType,
  3. String? errorCode,
  4. String? errorMessage,
  5. String? displayMessage,
  6. String? requestId,
  7. List<Object>? causes,
  8. double? status,
  9. String? documentationUrl,
  10. String? suggestedAction,
})

Implementation

Cause copyWith(
    {String? itemId,
    enums.PlaidErrorType? errorType,
    String? errorCode,
    String? errorMessage,
    String? displayMessage,
    String? requestId,
    List<Object>? causes,
    double? status,
    String? documentationUrl,
    String? suggestedAction}) {
  return Cause(
      itemId: itemId ?? this.itemId,
      errorType: errorType ?? this.errorType,
      errorCode: errorCode ?? this.errorCode,
      errorMessage: errorMessage ?? this.errorMessage,
      displayMessage: displayMessage ?? this.displayMessage,
      requestId: requestId ?? this.requestId,
      causes: causes ?? this.causes,
      status: status ?? this.status,
      documentationUrl: documentationUrl ?? this.documentationUrl,
      suggestedAction: suggestedAction ?? this.suggestedAction);
}