calculateDelay method
Calculates the delay before the next reconnection attempt.
Implementation
@override
Duration calculateDelay(int attemptNumber) {
final linearDelay = initialDelay.inMilliseconds +
(increment.inMilliseconds * (attemptNumber - 1));
final cappedDelay = linearDelay.clamp(0, maxDelay.inMilliseconds);
return Duration(milliseconds: cappedDelay);
}