stop method
void
stop()
Stops the spinner and clears its line, leaving nothing behind for the next print to overwrite.
Implementation
void stop() {
final timer = _timer;
_timer = null;
if (timer == null) {
return;
}
timer.cancel();
stdout.write('\r${' ' * (message.length + 2)}\r');
}