TransientRetryNotice typedef

TransientRetryNotice = void Function(int attempt, int maxAttempts, Duration delay, String reason)

The no-silent-retry note: fired before each retry sleep so the user sees "connection lost — retrying in 5s (attempt 2/3)" instead of a mysterious pause. attempt is the 1-based attempt that just failed; maxAttempts the total budget; reason the truncated provider error.

Implementation

typedef TransientRetryNotice =
    void Function(int attempt, int maxAttempts, Duration delay, String reason);