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;
}