stopLoadingAnimation method
void
stopLoadingAnimation()
Implementation
void stopLoadingAnimation() {
timer.cancel();
stdout.write('\r'); // Move the cursor to the beginning of the line
stdout.write(' ' * (animationFrames[frameIndex].length + 1)); // Clear the line
stdout.write('\r'); // Move the cursor back to the beginning of the line
print(''); // Move to the next line
}