RetryConfig constructor

const RetryConfig({
  1. bool enabled = true,
  2. int maxAttempts = 3,
  3. Duration initialDelay = const Duration(seconds: 1),
  4. double backoffMultiplier = 2.0,
  5. Duration maxDelay = const Duration(seconds: 10),
  6. Set<int> retryableStatusCodes = const {408, 429, 500, 502, 503, 504},
})

Implementation

const RetryConfig({
  this.enabled = true,
  this.maxAttempts = 3,
  this.initialDelay = const Duration(seconds: 1),
  this.backoffMultiplier = 2.0,
  this.maxDelay = const Duration(seconds: 10),
  this.retryableStatusCodes = const {408, 429, 500, 502, 503, 504},
});