calculateValue method
Implementation
double calculateValue() {
switch (type) {
case ProgressBarConfigType.fixedValue:
return value ?? 0;
case ProgressBarConfigType.calculatedValue:
return ((currentValue ?? 0) / (maxValue ?? 1)) * 100;
default:
return 0;
}
}