ExponentialRetryPolicy constructor Null safety
- {required int maxRetries,
- required Duration initialDelayInSeconds,
- required double multiplier,
- required Duration maximumDelayInSeconds}
Default constructor for ExponentialRetryPolicy.
Params:
- maxRetries: the maximum number of retries.
- initialDelayInSeconds: the delay to be waited before executing the first retry.
- multiplier: the multiplier of the delay interval.
- maximumDelayInSeconds: the maximum time interval of the delay in seconds.
Implementation
factory ExponentialRetryPolicy({
required int maxRetries,
required Duration initialDelayInSeconds,
required double multiplier,
required Duration maximumDelayInSeconds,
}) {
return ExponentialRetryPolicyImpl(
maxRetries: maxRetries,
initialDelayInSeconds: initialDelayInSeconds,
multiplier: multiplier,
maximumDelayInSeconds: maximumDelayInSeconds,
);
}