RetryOptions class final

Class of configuration options to retry a failed request given a condition.

Constructors

RetryOptions({required int retries, required Duration retryInterval, required bool shouldRetry(int? statusCode, dynamic data)})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
retries int
The number of times the request should be retried.
final
retryInterval Duration
The interval before a retry is performed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldRetry bool Function(int? statusCode, dynamic data)
The function that determines if the request should be retried.
final

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