status method
Implementation
String status(PendingTask task) {
if (!debug) {
return '';
}
final status = switch (task) {
_ when task.subTasks.isNotEmpty => '-',
_ when task.isRunning => 'R',
_ when task.isHalted => 'H',
_ when task.isError => 'E',
_ when task.hasCompleted => 'C',
_ when !task.hasStarted => 'P',
_ => '?',
};
return darkGray.wrap(' ($status)') ?? '';
}