BottomTabBarItem constructor

BottomTabBarItem({
  1. @required Widget? icon,
  2. Widget? title,
  3. Widget? activeIcon,
  4. Color? backgroundColor,
  5. Widget? badge,
  6. String? badgeNo,
})

Creates an item that is used with BottomTabBar.items.

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

Implementation

BottomTabBarItem({
  @required this.icon,
  this.title,
  Widget? activeIcon,
  this.backgroundColor,
  this.badge,
  this.badgeNo,
})  : activeIcon = activeIcon ?? icon,
      assert(icon != null);