ApiRetryConfig constructor

const ApiRetryConfig({
  1. bool enabled = true,
  2. int maxAttempts = 3,
  3. Duration baseDelay = const Duration(milliseconds: 300),
  4. Duration maxDelay = const Duration(seconds: 8),
  5. Set<int> retryStatusCodes = const <int>{408, 425, 429, 500, 502, 503, 504},
})

Implementation

const ApiRetryConfig({
  this.enabled = true,
  this.maxAttempts = 3,
  this.baseDelay = const Duration(milliseconds: 300),
  this.maxDelay = const Duration(seconds: 8),
  this.retryStatusCodes = const <int>{408, 425, 429, 500, 502, 503, 504},
});