fail method

void fail([
  1. String? update
])

End the progress and mark it as failed.

See also:

  • complete, to end the progress and mark it as a successful completion.
  • cancel, to cancel the progress entirely and remove the written line.

Implementation

void fail([String? update]) {
  _timer?.cancel();
  _write('$_clearLine${red.wrap('✗')} ${update ?? _message} $_time\n');
  _stopwatch.stop();
}