onRetry property

FutureOr<void> Function(Exception)? onRetry
getter/setter pair

At every retry the onRetry function will be called (if given). The function fn will be invoked at-most this.attempts times.

Implementation

FutureOr<void> Function(Exception)? onRetry;