NavigationMenu constructor
NavigationMenu({
- Key? key,
- required List<
DestinationData> destinations, - required Widget body,
- String? selectedDestinationLabel,
- bool? showRail,
- bool showMenuIcon = false,
- dynamic onSelected(
- DestinationData data
- dynamic onSettings()?,
Implementation
NavigationMenu({
super.key,
required this.destinations,
required this.body,
this.selectedDestinationLabel,
bool? showRail,
this.showMenuIcon = false,
this.onSelected,
this.onSettings,
}) {
if (showRail != null) {
_showRail = showRail;
WidgetsBinding.instance.addPostFrameCallback((_) {
this.showRail = showRail;
});
}
}