RetryOptions class

Constructors

RetryOptions({int retries = 3, RetryEvaluator? retryEvaluator, Duration retryInterval = const Duration(seconds: 5)})
const
RetryOptions.noRetry()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
retries int
The number of retry in case of an error
final
retryEvaluator RetryEvaluator
Evaluating if a retry is necessary.regarding the error.
no setter
retryInterval Duration
The interval before a retry.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? retries, Duration? retryInterval, RetryEvaluator? retryEvaluator}) RetryOptions
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

Static Methods

defaultRetryEvaluator(dynamic error, StreamedResponse? response) FutureOr<bool>
Returns true only if the response hasn't been cancelled or got a bas status code.