HandleInterface class abstract

Implementers

Constructors

HandleInterface()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateDelay(int retryCount) Duration?
Returns a duration of delay before retrying a request
getUpdatedRequest(BaseRequest originalRequest, BaseRequest lastRequest, FinalizedBodyStreamCallback bodyStream, BaseResponse? response, int retryCount) FutureOr<BaseRequest>
Returns an updated request that should be retried
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRequestRetry(BaseRequest request, BaseResponse? response, int retryCount) FutureOr<void>
This is called when a request is being retried. This is called after the request is updated and before the request is sent.
retryRequestWhen(BaseResponse response, int retryCount) FutureOr<bool>
This is used to determine whether a request should be retried
retryRequestWhenError(Object object, StackTrace stackTrace, int retryCount) FutureOr<bool>
This is used to determine whether a request should be retried when an error is thrown
toString() String
A string representation of this object.
inherited

Operators

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