RetryConfig constructor

const RetryConfig({
  1. int maxAttempts = 3,
  2. Duration delay = const Duration(seconds: 1),
  3. bool shouldRetry(
    1. Object error
    )?,
  4. double backoffMultiplier = 1.0,
})

Implementation

const RetryConfig({
  this.maxAttempts = 3,
  this.delay = const Duration(seconds: 1),
  this.shouldRetry,
  this.backoffMultiplier = 1.0,
});