YaruNavigationRailItem constructor

const YaruNavigationRailItem({
  1. Key? key,
  2. bool? selected,
  3. required Widget icon,
  4. Widget? label,
  5. String? tooltip,
  6. VoidCallback? onTap,
  7. required YaruNavigationRailStyle style,
  8. bool extendedSelectedIndicator = false,
  9. BorderRadiusGeometry? borderRadius,
  10. 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);