NavigationRailDestination constructor
- required Widget icon,
- Widget? selectedIcon,
- Color? indicatorColor,
- ShapeBorder? indicatorShape,
- required Widget label,
- EdgeInsetsGeometry? padding,
- bool disabled = false,
Creates a destination that is used with NavigationRail.destinations.
When the NavigationRail.labelType is NavigationRailLabelType.none, the label is still used for semantics, and may still be used if NavigationRail.extended is true.
Implementation
const NavigationRailDestination({
required this.icon,
Widget? selectedIcon,
this.indicatorColor,
this.indicatorShape,
required this.label,
this.padding,
this.disabled = false,
}) : selectedIcon = selectedIcon ?? icon;