updateProgress method

void updateProgress(
  1. String task,
  2. int processed,
  3. int total
)

Implementation

void updateProgress(String task, int processed, int total) {
  _currentTask = task;
  _processedFiles = processed;
  _totalFiles = total;
  _progress = total > 0 ? processed / total : 0.0;
  notifyListeners();
}