ExpiredTokenRetryPolicy class
- Inheritance
-
- Object
- RetryPolicy
- ExpiredTokenRetryPolicy
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRetryAttempts → int
-
Number of maximum request attempts that can be retried.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delayRetryAttemptOnException(
{required int retryAttempt}) → Duration -
inherited
-
delayRetryAttemptOnResponse(
{required int retryAttempt}) → Duration -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
String? parentUrl) → Future< bool> -
shouldAttemptRetryOnException(
Exception reason, BaseRequest request) → FutureOr< bool> -
Defines whether the request should be retried when an Exception occurs
while making said request to the server.
inherited
-
shouldAttemptRetryOnResponse(
BaseResponse response) → Future< bool> -
Defines whether the request should be retried after the request has
received
responsefrom the server.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited