Runnable class final

Executes the run function as atomic part of a workflow.

Inheritance

Constructors

Runnable(FutureOr<void> run(FlowContext context), {required String name})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Tag describing what the Runnable does.
final
run FutureOr<void> Function(FlowContext context)
Function that will be run at Step's execution.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(FlowContextController controller, [FutureOr<Step?> candidate()?]) Future<Step?>
Executes the run function and returns the candidate.
override
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