removeItem method
removeItem is used for removing the specific item from the cart Example: void removeItemFromCart(CartModel item) {
Implementation
// flutterCart.removeItem(item.productId, item.variants);
// }
void removeItem(String productId, List<ProductVariant> variants) {
_cartItemsList.removeWhere((item) =>
item.productId == productId &&
_areVariantsEqual(item.variants, variants));
if (getPersistenceSupportStatus()) {
_updatePersistenceCart(_cartItemsList);
}
}