NavigationRail constructor

const NavigationRail({
  1. Key? key,
  2. required int selectedIndex,
  3. required ValueChanged<int> onDestinationSelected,
  4. required List<NavRailDestination> destinations,
  5. bool extended = false,
  6. Widget? leading,
  7. Widget? trailing,
  8. NavigationRailLabelType? labelType,
  9. Color? backgroundColor,
  10. double? minWidth,
  11. double groupAlignment = -1,
})

Implementation

const NavigationRail({
  super.key,
  required this.selectedIndex,
  required this.onDestinationSelected,
  required this.destinations,
  this.extended = false,
  this.leading,
  this.trailing,
  this.labelType,
  this.backgroundColor,
  this.minWidth,
  this.groupAlignment = -1,
});