BottomTabBar constructor
BottomTabBar({
- Key? key,
- required List<
BottomTabBarItem> items, - ValueChanged<
int> ? onTap, - int currentIndex = 0,
- BrnBottomTabBarDisplayType type = BrnBottomTabBarDisplayType.fixed,
- Color? fixedColor,
- double iconSize = 24.0,
- bool isAnimation = false,
- Color? badgeColor,
- 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);