FixedBackoff class
Implements a fixed backoff retry strategy where the delay is always the same.
- Implemented types
Constructors
- FixedBackoff({Duration delay = const Duration(seconds: 5)})
-
Creates a fixed backoff strategy with a constant delay.
const
Properties
Methods
-
getDelay(
int attemptNumber) → Duration -
Calculates the delay for a given retry attempt.
Can return a Duration directly or a Future<Duration>.
override
-
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