NoRetryPolicy class final

A policy that allows a single attempt.

Inheritance

Constructors

NoRetryPolicy()
Creates a policy that does not retry.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
maxAttempts → int
Total executions allowed for a task, including the first.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delayAfter(int completedAttempts, double randomFraction) → Duration
Delay before the next attempt after completedAttempts have started.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this policy so it can be stored with the task.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override