RetryOptions class

Options to pass into retryClient to control the retry behavior.

Constructors

RetryOptions({required int maxRetries, required bool addJitter, FutureOr<bool> retryIf(Object e)?, List<Duration?>? delayDurations})
Options to pass into retryClient to control the retry behavior.

Properties

addJitter bool
Whether to add jitter to the exponential backoff.
final
delayDurations List<Duration?>?
The function will be retried based on an exponential backoff strategy with a base delay of 1 second.
final
hashCode int
The hash code for this object.
no setterinherited
maxRetries int
The maximum number of attempts to retry.
final
retryIf FutureOr<bool> Function(Object e)?
An evaluator function that can be used to decide if the function should be retried based on the exception it throws.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited