CustomNavigationBarItem constructor

CustomNavigationBarItem({
  1. required Widget icon,
  2. Widget? selectedIcon,
  3. Widget? title,
  4. Text? selectedTitle,
  5. int badgeCount = 0,
  6. bool showBadge = false,
})

Create a Custom Navigationbar Item.

the selectedIcon must not be null.

Implementation

CustomNavigationBarItem(
    {required this.icon,
    Widget? selectedIcon,
    this.title,
    Text? selectedTitle,
    this.badgeCount = 0,
    this.showBadge = false})
    : selectedIcon = selectedIcon ?? icon,
      selectedTitle = selectedTitle ?? title;