RetryConfig constructor
const
RetryConfig({})
Creates retry configuration.
Implementation
const RetryConfig({
this.maxAttempts = 5,
this.initialDelay = const Duration(seconds: 1),
this.maxDelay = const Duration(seconds: 60),
this.backoffMultiplier = 2,
this.jitter = 1.0,
this.exceptions,
}) : assert(jitter >= 0, 'jitter must be non-negative.');