RetryConfig.ofRegularIntervals constructor

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

Returns the new instance of RetryConfig of regular intervals.

Implementation

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