SmartRetryInterceptor constructor
SmartRetryInterceptor({})
Implementation
SmartRetryInterceptor({
required super.dio,
super.logPrint,
super.retries = 3,
super.retryDelays = const [
Duration(seconds: 1),
Duration(seconds: 2),
Duration(seconds: 3),
],
RetryEvaluator? retryEvaluator,
super.ignoreRetryEvaluatorExceptions = false,
super.retryableExtraStatuses = const {},
}) : super(
retryEvaluator:
retryEvaluator ?? DefaultRetryEvaluator({}).evaluate,
);