copyWith method

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

Implementation

Error copyWith(
    {enums.ErrorErrorType? errorType,
    String? errorCode,
    String? errorMessage,
    String? displayMessage,
    String? requestId,
    List<Object>? causes,
    double? status,
    String? documentationUrl,
    String? suggestedAction}) {
  return Error(
      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);
}