getBarHeight function

Future<double> getBarHeight(
  1. int expense
)

Implementation

Future<double> getBarHeight(int expense)async{
  int income = await getIncomes();
  return (expense *300-1)/income;
}