RetryConfig constructor
const
RetryConfig({})
Implementation
const RetryConfig({
this.maxAttempts = 3,
this.initialDelay = const Duration(seconds: 1),
this.maxDelay = const Duration(seconds: 10),
this.timeoutDuration = const Duration(seconds: 30),
this.shouldRetry,
}) : assert(maxAttempts > 0, 'maxAttempts must be greater than 0');