retryIf property

(FutureOr<bool> Function(Object error, int attempt)?) retryIf
final

Function to determine if a retry should be attempted.

If null (default) all errors will be retried.

Implementation

final FutureOr<bool> Function(Object error, int attempt)? retryIf;