bottomNav method

void bottomNav({
  1. required Iterable<BottomNavItem> items,
  2. BottomNavStyle style = BottomNavStyle.flutter,
  3. ColorToken? backgroundColor,
  4. ColorToken? selectedColor,
  5. ColorToken? unselectedColor,
})

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,
  );
}