NavRailButton constructor
const
NavRailButton({
- Key? key,
- String? label,
- IconData? icon,
- dynamic onTap()?,
- bool expanded = false,
- bool selected = false,
- bool showSelected = true,
- double? width = 0,
- double? height = 0,
- Color? selectedColor,
- Color? selectedBackgroundColor,
- Color? unselectedBackgroundColor,
- Color? unselectedColor,
- BorderRadius? borderRadius,
- NavRailDirection direction = NavRailDirection.vertical,
- NavRailButtonLabelPosition labelPosition = NavRailButtonLabelPosition.bottom,
Creates a NavRailButton widget.
At least one of label or icon should be provided.
The onTap callback is optional but typically provided.
Implementation
const NavRailButton({
super.key,
super.label,
super.icon,
super.onTap,
super.expanded = false,
super.selected = false,
super.showSelected = true,
super.width = 0,
super.height = 0,
super.selectedColor,
super.selectedBackgroundColor,
super.unselectedBackgroundColor,
super.unselectedColor,
super.borderRadius,
super.direction = NavRailDirection.vertical,
super.labelPosition = NavRailButtonLabelPosition.bottom,
});