backoffCeiling method
Deterministic exponential ceiling before jitter.
Implementation
Duration backoffCeiling(int attempt) {
final exp = pow(2, max(0, attempt - 1)).toDouble();
final ms = min(maxDelay.inMilliseconds.toDouble(), baseDelay.inMilliseconds * exp);
return Duration(milliseconds: ms.toInt());
}