NavigationMenu constructor

NavigationMenu({
  1. Key? key,
  2. required List<DestinationData> destinations,
  3. required Widget body,
  4. String? selectedDestinationLabel,
  5. bool? showRail,
  6. bool showMenuIcon = false,
  7. dynamic onSelected(
    1. DestinationData data
    )?,
  8. 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;
    });
  }
}