retryIf property

FutureOr<bool> Function(Object e)? retryIf
final

An evaluator function that can be used to decide if the function should be retried based on the exception it throws.

If you decide not to retry on a particular exception, retryIf can return false and the retry won't happen. By default retryIf is true and all exceptions are retried.

Implementation

final FutureOr<bool> Function(Object e)? retryIf;