I have this code that should calculate total sum of a list:
int _counter = 0; Future getTotal(item) async { int counter = 0; _totalPrice.add(int.parse(item)