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

delay Duration
The fixed delay duration for every retry attempt.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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