ActionStep class
A step that runs Dart code, such as deleting a folder or calling an API
The step talks to the user only through the StepContext, which is also how it runs any command
Constructors
-
ActionStep(String label, Future<
StepError?> action(StepContext context), {RunCondition runIf = RunCondition.notStopped})
Properties
-
action
→ Future<
StepError?> Function(StepContext context) -
The work of the step. It returns the error when the step has failed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
The name of the step shown to the user, e.g.
flutter cleanoriOSfinalinherited - runIf → RunCondition
-
finalinherited
- 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