A function that calculates the delay between retries.
The function takes the current retry count as input and returns a Duration.
final Duration Function(int retryCount) retryDelay;