reportProgress static method
Reports progress with a simple percentage indicator.
Parameters:
operation: Description of the current operationcurrent: Current progress valuetotal: Total expected value
Implementation
static void reportProgress(String operation, int current, int total) {
final percentage = (current / total * 100).toStringAsFixed(1);
final progressBar = _generateProgressBar(current, total, width: 20);
print('\r$operation: $progressBar $percentage% ($current/$total)');
}