show static method
void
show({
- required BuildContext context,
- required dynamic checkOutButton(),
- required dynamic checkOutPaypalButton(),
Implementation
static void show(
{required BuildContext context,
required Function(List<CartItem> cartList) checkOutButton,
required Function(List<CartItem> cartList) checkOutPaypalButton}) {
showModalBottomSheet(
context: context,
backgroundColor: Colors.grey[100],
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(
top: Radius.circular(20),
),
),
builder: (context) => BottomSheetCart(
checkOutButton: checkOutButton,
checkOutPaypalButton: checkOutPaypalButton),
);
}