progress property
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;
}
How far along the load is, from 0 to 1.
double get progress {
if (done) return 1;
if (total == 0) return 0;
return completed / total;
}