func property

FutureOr<T> Function() func
final

The Function to execute. If the function throws an error, it will be retried maxAttempts times with an increasing delay between each attempt up to maxDelay.

If retryIf is provided, the function will only be retried if the error matches the predicate.

Implementation

final FutureOr<T> Function() func;