Task class final

One step for Logger.tasks.

Constructors

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.
const

Properties

enabled → bool Function()?
Called when the task would start; false skips it.
final
hashCode → int
The hash code for this object.
no setterinherited
run → FutureOr<void> Function(TaskContext task)
The work. A thrown error fails the task.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The text on the task's line.
final

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