RetryConfig class

Controls automatic request retry on failure.

RetryConfig(isToRetryOnError: true, retryTimes: 3)

Constructors

RetryConfig({bool isToRetryOnError = false, int retryTimes = 3})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isToRetryOnError bool
Enable automatic retry when the request returns an error response.
final
retryTimes int
Maximum number of retry attempts. Defaults to 3.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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