absoluteValue property
double
get
absoluteValue
Calcula a duração real incluindo pontos de aumento. Fórmula: valor_original + (valor_original * 0.5^1) + (valor_original * 0.5^2) + ...
Implementation
double get absoluteValue {
double value = type.value;
double addedValue = 0;
double currentDot = type.value * 0.5;
for (int i = 0; i < dots; i++) {
addedValue += currentDot;
currentDot *= 0.5;
}
return value + addedValue;
}