Nav constructor
const
Nav({
- Key? key,
- required List<
NavItem> items, - List<
NavMenuItem> trailingMenu = const [], - VoidCallback? onPressBackButton,
- bool? isBackButtonEnabled,
- bool visible = true,
- 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);