cancel method

void cancel()

Ends and removes the line.

Implementation

void cancel() {
  final animated = _timer != null;
  if (_stop() && animated && !_logger._hasOpenLine) {
    _out.write('\r\x1b[K');
    _logger._rows = 0;
  }
}