Nav constructor

const Nav({
  1. Key? key,
  2. required List<NavItem> items,
  3. Axis navAxis = Axis.vertical,
  4. List<NavMenuItem> trailingMenu = const [],
  5. VoidCallback? onPressBackButton,
  6. bool? isBackButtonEnabled,
  7. bool visible = true,
  8. NavController? controller,
})

Creates a navigation bar.

Implementation

const Nav({
  super.key,
  required this.items,
  this.navAxis = Axis.vertical,
  this.trailingMenu = const [],
  this.onPressBackButton,
  this.isBackButtonEnabled,
  this.visible = true,
  this.controller,
}) : assert(items.length > 0);