Exercise: Implementing the Shopping Cart
Test your Flutter BLoC skills by implementing the shopping cart feature in the e-commerce application.
We'll cover the following...
In this exercise, implement the ShoppingCartCubit
and use it in the code. The states of the ShoppingCartCubit
are already created for you. Here are the states available to be used:
ShoppingCartInitial
: This represents the initial state ofShoppingCartCubit
, which is the state that theShoppingCartCubit
will be in when it’s first created....