progress property

double get progress

How far along the load is, from 0 to 1.

Implementation

double get progress {
  if (_done) return 1;
  if (_total == 0) return 0;
  return _completed / _total;
}