printProgressBar static method
Print progress bar
Implementation
static void printProgressBar(int current, int total, {String label = ''}) {
final percentage = (current / total * 100).round();
final barLength = 30;
final filledLength = (current / total * barLength).round();
final bar = '█' * filledLength + '░' * (barLength - filledLength);
stdout.write('\r$label [$bar] $percentage% ($current/$total)');
}