RetryConfig.ofExponentialBackOffAndJitter constructor

  1. @Deprecated('Use default constructor instead. Will be removed in v5.0.0')
RetryConfig.ofExponentialBackOffAndJitter({
  1. required int maxAttempts,
  2. dynamic onExecute(
    1. RetryEvent event
    )?,
})

Returns the new instance of RetryConfig of Exponential Back Off and Jitter.

Implementation

@Deprecated('Use default constructor instead. Will be removed in v5.0.0')
factory RetryConfig.ofExponentialBackOffAndJitter({
  required int maxAttempts,
  Function(RetryEvent event)? onExecute,
}) =>
    RetryConfig(
      maxAttempts: maxAttempts,
      onExecute: onExecute,
    );