stop method
Implementation
Future<void> stop({String? completionSymbol = '✓'}) async {
isLoading = false;
// Clear the current line to remove any leftover characters
stdout.write('\r\x1B[2K'); // '\x1B[2K' clears the line
// Print the final message with the check mark and task
if (animationPosition == LoaderPosition.before) {
stdout.write('$completionSymbol $task\n');
} else {
stdout.write('$task $completionSymbol\n');
}
}