RetryInterceptor constructor
RetryInterceptor({
- required Dio dio,
- dynamic logPrint(
- String message
- int retries = 3,
- List<
Duration> retryDelays = const [Duration(seconds: 1), Duration(seconds: 2), Duration(seconds: 4)], - 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,
});