NavigationRail constructor

const NavigationRail({
  1. Key? key,
  2. Color? backgroundColor,
  3. NavigationRailAlignment alignment = NavigationRailAlignment.center,
  4. Axis direction = Axis.vertical,
  5. double? spacing,
  6. NavigationLabelType labelType = NavigationLabelType.selected,
  7. EdgeInsetsGeometry? padding,
  8. BoxConstraints? constraints,
  9. int? index,
  10. ValueChanged<int>? onSelected,
  11. double? surfaceOpacity,
  12. double? surfaceBlur,
  13. required List<NavigationBarItem> children,
})

Implementation

const NavigationRail({
  super.key,
  this.backgroundColor,
  this.alignment = NavigationRailAlignment.center,
  this.direction = Axis.vertical,
  this.spacing,
  this.labelType = NavigationLabelType.selected,
  this.padding,
  this.constraints,
  this.index,
  this.onSelected,
  this.surfaceOpacity,
  this.surfaceBlur,
  required this.children,
});