ApiRetryConfig class

Retry behavior for one API connection.

Constructors

ApiRetryConfig({bool enabled = true, int maxAttempts = 3, Duration baseDelay = const Duration(milliseconds: 300), Duration maxDelay = const Duration(seconds: 8), Set<int> retryStatusCodes = const <int>{408, 425, 429, 500, 502, 503, 504}})
const

Properties

baseDelay → Duration
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
maxAttempts → int
final
maxDelay → Duration
final
retryStatusCodes → Set<int>
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