getSpecificProduct method
getSpecificProduct will return the specific item from cart
Implementation
CartModel? getSpecificProduct(
String productId,
List<ProductVariant> variants,
) {
var itemIndex = getProductIndex(productId, variants);
if (itemIndex != -1) {
return _cartItemsList[itemIndex];
}
return null;
}