BottomNavigationBarItem constructor

const BottomNavigationBarItem({
  1. Key? key,
  2. required Widget icon,
  3. String? label,
  4. Widget? activeIcon,
  5. Color? backgroundColor,
  6. String? tooltip,
})

Creates an item that is used with BottomNavigationBar.items.

The argument icon should not be null and the argument label should not be null when used in a Material Design's BottomNavigationBar.

Implementation

const BottomNavigationBarItem({
  this.key,
  required this.icon,
  this.label,
  Widget? activeIcon,
  this.backgroundColor,
  this.tooltip,
}) : activeIcon = activeIcon ?? icon;