ListCartItems constructor

const ListCartItems({
  1. Key? key,
  2. required Widget cartTileWidget({
    1. required PersistentShoppingCartItem data,
    }),
  3. required Widget showEmptyCartMsgWidget,
})

Creates a ListCartItems instance.

The cartTileWidget is a builder function for each cart item, and showEmptyCartMsgWidget is displayed when the cart is empty.

Implementation

const ListCartItems({
  Key? key,
  required this.cartTileWidget,
  required this.showEmptyCartMsgWidget,
}) : super(key: key);