Is there any way to sum items from list API in Flutter shopping cart page?
I have to calculate the sub-total amount, shipping cost, and packaging cost and show them on CartView page. I fetched data from API and I got a price, quantity, shipping cost, etc. There subtotal = price* quantity. There is my…