RunningTask<T extends TimerTask> class

Represents the current state of a running TimerWorkflow.

This object is emitted by the TimerWorkflow.stream every second and provides a snapshot of the workflow's progress.

Constructors

RunningTask({required String workflowName, required WorkflowStatus status, required T? current, required T? next, required bool changed, required int remainingTaskMilliseconds, required int remainingTotalMilliseconds})
Creates a snapshot of the current workflow state.

Properties

changed → bool
A flag indicating if the task has just changed in this tick. true on the first tick of a new task.
final
current → T?
The task that is currently being executed. Can be null if the workflow has completed.
final
hashCode → int
The hash code for this object.
no setterinherited
next → T?
The next task in the sequence. Can be null if the current task is the last one.
final
remainingTaskMilliseconds → int
The remaining time for the current task, in milliseconds.
final
remainingTotalMilliseconds → int
The total remaining time for the entire workflow, in milliseconds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → WorkflowStatus
The current status of the workflow (WorkflowStatus.started, WorkflowStatus.paused, or WorkflowStatus.stopped).
final
workflowName → String
The name of the workflow.
final

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