Error constructor

Error({
  1. required String error,
  2. String? message,
  3. int? retryAfter,
  4. int? creditsRemaining,
  5. required String requestId,
})

Returns a new Error instance.

Implementation

Error({
  required this.error,
  this.message,
  this.retryAfter,
  this.creditsRemaining,
  required this.requestId,
});