RetryBackOff.exponential constructor

const RetryBackOff.exponential(
  1. Duration? interval, {
  2. bool withJitter = true,
  3. Duration? maxInterval,
})

Construct a new exponential back-off representation where interval is the base duration from which each delay will be calculated.

Implementation

const RetryBackOff.exponential(this.interval,
    {this.withJitter = true, Duration? maxInterval})
    : method = RetryBackOffMethod.exponential,
      maxInterval = maxInterval ?? defaultMaxInterval;