getRetryIntervalForAttempt static method
Gets the retry interval for a specific attempt
attemptNumber must be between 1 and maxRetryAttempts
Returns null if the attempt number is invalid
Implementation
static int? getRetryIntervalForAttempt(int attemptNumber) {
if (attemptNumber < 1 || attemptNumber > maxRetryAttempts) {
return null;
}
return _currentRetryIntervals[attemptNumber - 1];
}