RetryInterceptor constructor

RetryInterceptor({
  1. required Dio dio,
  2. dynamic logPrint(
    1. String message
    )?,
  3. int retries = 3,
  4. ToNoInternetPageNavigator? toNoInternetPageNavigator,
  5. List<Duration> retryDelays = const [Duration(seconds: 1), Duration(seconds: 2), Duration(seconds: 4)],
  6. RetryEvaluator? retryEvaluator,
})

Implementation

RetryInterceptor({
  required this.dio,
  this.logPrint,
  this.retries = 3,
  this.toNoInternetPageNavigator,
  this.retryDelays = const [
    Duration(seconds: 1),
    Duration(seconds: 2),
    Duration(seconds: 4),
  ],
  this.retryEvaluator,
});