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