stop method

void stop()

Implementation

void stop() {
  final totalLines = animations.first.totalRows;

  for (final animation in animations) {
    animation.stopWithoutClearing();
  }

  // Clear the entire animation block top to bottom
  stderr.write(
    '\x1B[${totalLines}A' // Move up to top line
    '\x1B[J' // Clear to bottom of screen
    '\x1B[?25h', // Show cursor
  );
}