nextDelay abstract method

FutureOr<Duration?> nextDelay(
  1. RetryContext context
)

Returns the delay to wait before the next attempt, or null to stop retrying and let the original error propagate.

Called once per failed attempt with a fresh context.

Implementation

FutureOr<Duration?> nextDelay(final RetryContext context);