BackOff<T> constructor
const
BackOff<T> (})
Implementation
const BackOff(
this.func, {
this.delayFactor = const Duration(milliseconds: 200),
this.randomizationFactor = 0.25,
this.maxDelay = const Duration(seconds: 30),
this.maxAttempts = 8,
this.retryIf,
}) : assert(maxAttempts >= 1, 'maxAttempts must be greater than 0');