RetryInterceptor constructor

RetryInterceptor({
  1. int maxRetries = 1,
  2. RetryCondition? shouldRetry,
  3. RetryDelay? delay,
  4. BeforeRetry? beforeRetry,
})

Implementation

RetryInterceptor({
  this.maxRetries = 1,
  RetryCondition? shouldRetry,
  RetryDelay? delay,
  BeforeRetry? beforeRetry,
})  : shouldRetryFunc = shouldRetry ?? _defaultRetryCondition,
      delayFunc = delay ?? _defaultDelay,
      beforeRetryFunc = beforeRetry;