NavigationRail constructor
const
NavigationRail({
- Key? key,
- required int selectedIndex,
- required ValueChanged<
int> onDestinationSelected, - required List<
NavRailDestination> destinations, - bool extended = false,
- Widget? leading,
- Widget? trailing,
- NavigationRailLabelType? labelType,
- Color? backgroundColor,
- double? minWidth,
- 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,
});