Task class
A Dartle task whose action is provided by user code in order to execute some logic during a build run.
- Implementers
Constructors
-
Task(dynamic action(List<
String> ), {String description = '', String name = '', Set<String> dependsOn = const {}, RunCondition runCondition = const AlwaysRun(), ArgsValidator argsValidator = const DoNotAcceptArgs(), TaskPhase phase = TaskPhase.build})
Properties
-
action
→ dynamic Function(List<
String> args) -
The action this task performs.
no setter
- argsValidator → ArgsValidator
-
final
-
depends
→ Set<
String> -
Get this task's dependencies.
no setter
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isParallelizable → bool
-
Whether this task may run in parallel with others inside Isolates.
no setter
- name → String
-
The name of this task.
no setter
- phase → TaskPhase
-
final
- runCondition → RunCondition
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dependsOn(
Set< String> taskNames) → void - Add dependencies on other tasks.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override