percent property
double
get
percent
Returns a percent completed, between 0 and 100
Implementation
double get percent {
if (_total == 0) return 0;
return math.min(1, math.max(0, progress / _total!));
}