RetryMiddleware constructor

RetryMiddleware({
  1. int maxAttempts = 3,
  2. Duration delay = const Duration(seconds: 1),
  3. bool shouldRetry(
    1. dynamic error
    )?,
})

Implementation

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