RetryOptions constructor

const RetryOptions({
  1. int maxRetries = 3,
  2. Duration baseDelay = const Duration(milliseconds: 500),
  3. Duration maxDelay = const Duration(seconds: 30),
  4. int inProgressRetries = 10,
  5. RetryCallback? onRetry,
  6. 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,
});