LokotroRetryInterceptor constructor

LokotroRetryInterceptor({
  1. int maxRetries = 3,
  2. Duration retryDelay = const Duration(seconds: 1),
  3. List<DioExceptionType> retryableErrors = const [DioExceptionType.connectionTimeout, DioExceptionType.sendTimeout, DioExceptionType.receiveTimeout, DioExceptionType.connectionError],
})

Implementation

LokotroRetryInterceptor({
  this.maxRetries = 3,
  this.retryDelay = const Duration(seconds: 1),
  this.retryableErrors = const [
    DioExceptionType.connectionTimeout,
    DioExceptionType.sendTimeout,
    DioExceptionType.receiveTimeout,
    DioExceptionType.connectionError,
  ],
});