RetryOptions constructor
const
RetryOptions({
- int maxRetries = 3,
- Duration baseDelay = const Duration(milliseconds: 500),
- Duration maxDelay = const Duration(seconds: 30),
- int inProgressRetries = 10,
- RetryCallback? onRetry,
- RetrySleep sleep = _defaultSleep,
Implementation
const RetryOptions({
this.maxRetries = 3,
this.baseDelay = const Duration(milliseconds: 500),
this.maxDelay = const Duration(seconds: 30),
this.inProgressRetries = 10,
this.onRetry,
this.sleep = _defaultSleep,
});