stop method

void stop([
  1. String? message
])

Stops the Loading Bar with the specified (and optional) message.

Implementation

void stop([String? message]) {
  if (_timer != null) {
    _timer!.cancel();
  }

  if (message != null) {
    position = message;
    update();
  }
  Console.showCursor();
  print('');
}