CustomBottomIndicatorBar constructor

CustomBottomIndicatorBar({
  1. Key? key,
  2. required ValueChanged<int> onTap,
  3. required List<BottomNavigationBarItem> items,
  4. Color? activeColor,
  5. Color? inactiveColor,
  6. Color? indicatorColor,
  7. Color? shadowColor,
  8. Color? backgroundColor,
  9. bool shadow = false,
  10. int currentIndex = 0,
  11. TextStyle? selectedLabelStyle,
  12. TextStyle? unselectedLabelStyle,
  13. IconThemeData? unselectedIconTheme,
  14. IconThemeData? selectedIconTheme,
  15. int animationDuration = 180,
  16. bool? showSelectedLabels,
  17. bool? showUnselectedLabels,
  18. double? elevation,
})

Implementation

CustomBottomIndicatorBar({
  Key? key,
  required this.onTap,
  required this.items,
  this.activeColor,
  this.inactiveColor,
  this.indicatorColor,
  this.shadowColor,
  this.backgroundColor,
  this.shadow = false,
  this.currentIndex = 0,
  this.selectedLabelStyle,
  this.unselectedLabelStyle,
  this.unselectedIconTheme,
  this.selectedIconTheme,
  this.animationDuration = 180,
  this.showSelectedLabels,
  this.showUnselectedLabels,
  this.elevation,
}) :  assert(items.length >= 2),
      assert(
      items.every((BottomNavigationBarItem item) => item.label != null),
      'Every item must have a non-null title or label',
      ),
      assert(elevation == null || elevation >= 0.0),
      assert(0 <= currentIndex && currentIndex < items.length),
      super(key: key);