availablePercent method
Returns the percentage of spending available for this budget.
Implementation
double availablePercent() {
final double totalAmount = size.amount;
final double spentAmount = spent(currency: size.currency).amount;
return 1 - spentAmount / totalAmount;
}