clear method

void clear()

Clear the progress bar from the terminal, allowing other logging to be printed.

Implementation

void clear() {
  if (!_shouldDrawProgress) {
    return;
  }
  _printProgressBar(' ' * _width);
}