Task constructor
const
Task(
- String title,
- FutureOr<
void> run(- TaskContext task
- bool enabled()?,
run does the work; TaskContext lets it log, retitle itself, skip
and run nested steps. When enabled returns false, the task is
skipped instead of run.
Implementation
const Task(this.title, this.run, {this.enabled});