RetryInterceptor constructor

RetryInterceptor({
  1. int maxRetries = 3,
  2. Duration baseDelay = const Duration(milliseconds: 1000),
  3. Duration maxDelay = const Duration(seconds: 30),
  4. double backoffMultiplier = 2.0,
  5. bool retryOnTimeout = true,
  6. bool retryOnConnectionError = true,
  7. List<int> retryStatusCodes = const [408, 429, 500, 502, 503, 504],
})

Implementation

RetryInterceptor({
  this.maxRetries = 3,
  this.baseDelay = const Duration(milliseconds: 1000),
  this.maxDelay = const Duration(seconds: 30),
  this.backoffMultiplier = 2.0,
  this.retryOnTimeout = true,
  this.retryOnConnectionError = true,
  this.retryStatusCodes = const [408, 429, 500, 502, 503, 504],
});