TaskState<K, T> class
Constructors
-
TaskState({required K key, required int maxAttempts, List<
Result< results = const []})T, Object> > -
const
-
TaskState.fromTask(SecretaryTask<
K, T> task) -
factory
Properties
- attempts → int
-
no setter
- canRetry → bool
-
no setter
-
errors
→ List<
Object> -
no setter
- failed → bool
-
no setter
- finished → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → K
-
final
-
lastResult
→ Result<
T, Object> ? -
no setter
- maxAttempts → int
-
final
-
results
→ List<
Result< T, Object> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- succeeded → bool
-
no setter
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