addProcess method

void addProcess(
  1. ProgressItem progress
)

Implementation

void addProcess(ProgressItem progress) {
  if (_fails.any((element) => element == progress)) {
    _fails.remove(progress);
  }
  _progresses.add(progress);
  progress.start();
  update();
}