Task<T extends Object> class
final
A data class representing a single, configured task in a sequence.
Constructors
-
Task.new({required TTaskHandler<
T> handler, required TOnTaskError? onError, required bool? eagerError, required Duration? minTaskDuration}) -
const
Properties
- eagerError → bool?
-
Overrides the sequencer's
eagerError
behavior for this task.final -
handler
→ TTaskHandler<
T> -
The core logic of the task.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- minTaskDuration → Duration?
-
Overrides the sequencer's
minTaskDuration
for this task.final - onError → TOnTaskError?
-
An error handler specific to this task.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited