TaskContext class final

What a running Task can do with its line.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String
The text on the task's line.
getter/setter pair

Methods

log(String line) → void
Adds line to the task's output. While it runs, the last line shows dim under the task; a failed task shows its output. In plain mode each line is printed at once, prefixed with the task's title.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skip([String? reason]) → Never
Ends the task as skipped, with an optional reason. It throws, so nothing after it runs.
tasks(List<Task> tasks, {int concurrency = 1}) → Future<void>
Runs tasks as nested steps under this one, indented. A succeeded task with steps collapses to one line.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited