RetryNotifier typedef

RetryNotifier = void Function(Object error, int attempt, Duration delay)

Called before a retry sleeps: the error behind the failed attempt and the delay chosen.

Implementation

typedef RetryNotifier = void Function(Object error, int attempt, Duration delay);