value method
Returns the corresponding double
value of this Renewal
value.
Implementation
double value() {
switch (this) {
case Renewal.annual:
return 365.25;
case Renewal.daily:
return 1;
case Renewal.monthly:
return 365.25 / 12;
case Renewal.weekly:
return 7;
}
}