onPressed: () { _cart.remove(_cart.items[index]) ; setState() {} ; }, g a // this code is being applied but not removing the items from cart
onPressed: () {
_cart.remove(_cart.items[index]) ;
setState() {} ;
},
g a
// this code is being applied but not removing the items from cart