RetryConfig.ofRegularIntervals constructor
- @Deprecated('Use default constructor instead. Will be removed in v5.0.0')
- required int maxAttempts,
- int intervalInSeconds = 2,
- dynamic onExecute(
- 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,
);