getProductIndex method
getProductIndex will return the specific item index
Implementation
int getProductIndex(
String productId,
List<ProductVariant> variants,
) {
var itemIndex = _cartItemsList.indexWhere((item) =>
item.productId == productId &&
_areVariantsEqual(item.variants, variants));
return itemIndex;
}