bottomNav method
void
bottomNav({
Declares a project-wide bottom navigation shell.
Implementation
void bottomNav({
required Iterable<BottomNavItem> items,
BottomNavStyle style = BottomNavStyle.flutter,
ColorToken? backgroundColor,
ColorToken? selectedColor,
ColorToken? unselectedColor,
}) {
if (_bottomNav != null) {
throw StateError('Bottom navigation has already been configured.');
}
_bottomNav = BottomNavDeclaration(
items: items,
style: style,
backgroundColor: backgroundColor,
selectedColor: selectedColor,
unselectedColor: unselectedColor,
);
}