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