DefaultRetryHandler<T> class Null safety

DefaultRetryHandler is used as the default retry backoff mechanism for handling RateLimitExceptions.

Implemented types

Constructors

DefaultRetryHandler()

Properties

attempts int
Counts the number of attempts made so far
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getRetryAfter(Duration? retryAfter) Duration
Gives back the duration suggested by the API or a Duration based on the number of attempts if no retry headers were provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
retry(Future<T> executor()) Future<T>
Implementation of the retry mechanism.
override
toString() String
A string representation of this object. [...]
inherited

Operators

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