isItemExistsInCart method

bool isItemExistsInCart(
  1. String productId
)

Checks if a product with the given productId exists in the shopping cart.

Implementation

bool isItemExistsInCart(String productId) {
  return _cartBox.keys.contains(productId);
}