RetryInterceptor constructor

RetryInterceptor({
  1. required Dio dio,
  2. int maxRetries = 3,
  3. Duration retryInterval = const Duration(seconds: 2),
})

Creates a retry interceptor.

Implementation

RetryInterceptor({
  required this.dio,
  this.maxRetries = 3,
  this.retryInterval = const Duration(seconds: 2),
});