Callback emitted when a request is about to be retried.
final void Function(int attempt, Duration nextDelay, dynamic error)? onRetry;