CustomBottomNavigation constructor

const CustomBottomNavigation({
  1. Key? key,
  2. required int selectedIndex,
  3. required ValueChanged<int> onTap,
  4. required List<BottomNavigationBarItem> items,
})

Implementation

const CustomBottomNavigation({
  Key? key,
  required this.selectedIndex,
  required this.onTap,
  required this.items,  // Accept the items parameter here
}) : super(key: key);