setProgress method

void setProgress(
  1. dynamic current,
  2. dynamic total
)

Implementation

void setProgress(current, total) {
  if (progress != null) progress!(current, total);
  if (!_isDisposed) notifyListeners();
}