fraction property
double
get
fraction
Implementation
double get fraction {
if (percentage != null) return percentage!.clamp(0.0, 1.0);
if (total <= 0) return 0.0;
return (current / total).clamp(0.0, 1.0);
}