BottomNavigation constructor
const
BottomNavigation({
- Key? key,
- required List<
BottomNavigationItem> items, - required int index,
- ValueChanged<
int> ? onChanged, - BottomNavigationThemeData? style,
Creates a bottom navigation
items must have at least 2 items
index must be in the range of 0 to items.length
Implementation
const BottomNavigation({
super.key,
required this.items,
required this.index,
this.onChanged,
this.style,
}) : assert(items.length >= 2),
assert(index >= 0 && index < items.length);