RetryInterceptor constructor
RetryInterceptor({
- int maxRetries = 1,
- RetryCondition? shouldRetry,
- RetryDelay? delay,
- BeforeRetry? beforeRetry,
Implementation
RetryInterceptor({
this.maxRetries = 1,
RetryCondition? shouldRetry,
RetryDelay? delay,
BeforeRetry? beforeRetry,
}) : shouldRetryFunc = shouldRetry ?? _defaultRetryCondition,
delayFunc = delay ?? _defaultDelay,
beforeRetryFunc = beforeRetry;