stop method
Implementation
void stop({String? finalLine}) {
if (!_active) return;
_active = false;
_timer?.cancel();
_timer = null;
if (stdout.hasTerminal) {
// Clear the spinner line.
stdout.write('\r\x1B[2K');
}
if (finalLine != null) stdout.writeln(finalLine);
}