YaruNavigationRailItem constructor
const
YaruNavigationRailItem({
- Key? key,
- bool? selected,
- required Widget icon,
- Widget? label,
- String? tooltip,
- VoidCallback? onTap,
- required YaruNavigationRailStyle style,
- bool extendedSelectedIndicator = false,
- BorderRadiusGeometry? borderRadius,
- double? width,
Implementation
const YaruNavigationRailItem({
super.key,
this.selected,
required this.icon,
this.label,
this.tooltip,
this.onTap,
required this.style,
this.extendedSelectedIndicator = false,
this.borderRadius,
this.width,
}) : assert(style == YaruNavigationRailStyle.compact || label != null);