QueryRetry class final
Retry decision independent from a particular transport.
Constructors
- QueryRetry.forever()
-
Retries every failure.
const
- QueryRetry.never()
-
Never retries a failed operation.
const
- QueryRetry.times(int retries)
-
Retries at most
retriestimes.factory - QueryRetry.when(bool test(int failureCount, Object error))
-
Uses
testto decide whether each failure should retry.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
shouldRetry(
int failureCount, Object error) → bool - Returns whether the current failure should retry.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited