stop method
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('');
}