ExponentialBackoff constructor

const ExponentialBackoff({
  1. Duration baseDelay = const Duration(seconds: 1),
  2. double multiplier = 2.0,
  3. Duration maxDelay = const Duration(minutes: 5),
})

Creates an exponential backoff strategy.

Implementation

const ExponentialBackoff({
  this.baseDelay = const Duration(seconds: 1),
  this.multiplier = 2.0,
  this.maxDelay = const Duration(minutes: 5),
});