BottomTabBar constructor

BottomTabBar({
  1. Key? key,
  2. required List<BottomTabBarItem> items,
  3. ValueChanged<int>? onTap,
  4. int currentIndex = 0,
  5. BrnBottomTabBarDisplayType type = BrnBottomTabBarDisplayType.fixed,
  6. Color? fixedColor,
  7. double iconSize = 24.0,
  8. bool isAnimation = false,
  9. Color? badgeColor,
  10. bool isInkResponse = false,
})

Implementation

BottomTabBar({
  Key? key,
  required this.items,
  this.onTap,
  this.currentIndex = 0,
  this.type = BrnBottomTabBarDisplayType.fixed,
  this.fixedColor,
  this.iconSize = 24.0,
  this.isAnimation = false,
  this.badgeColor,
  this.isInkResponse = false,
})  : assert(items.isNotEmpty),
      assert(
        items.every((BottomTabBarItem item) => item.title != null) == true,
        'Every item must have a non-null title',
      ),
      assert(0 <= currentIndex && currentIndex < items.length),
      super(key: key);