cancel method

void cancel()

Cancel the progress and remove the written line.

Implementation

void cancel() {
  _timer?.cancel();
  _write(_clearLine);
  _stopwatch.stop();
}