RetryPolicy class

Configuration for retry behavior when API requests fail.

Annotations

Constructors

RetryPolicy({int maxRetries = 3, Duration initialBackoff = const Duration(seconds: 1), Duration maxBackoff = const Duration(seconds: 10)})
Creates a new retry policy with the specified settings.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
initialBackoff Duration
Initial wait time before the first retry
final
maxBackoff Duration
Maximum wait time between retries
final
maxRetries int
Maximum number of retry attempts
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