addToCart static method

void addToCart(
  1. BuildContext context,
  2. AppModel app,
  3. ActionModel? continueShoppingAction,
  4. ProductModel? product,
  5. int amount,
)

Implementation

static void addToCart(BuildContext context, AppModel app,
    ActionModel? continueShoppingAction, ProductModel? product, int amount) {
  _runEvent(
      context, app, AddProduct(amount, product, continueShoppingAction));
}