FSidebarItem constructor

const FSidebarItem({
  1. FSidebarItemStyleDelta style = const .context(),
  2. Widget? icon,
  3. Widget? label,
  4. bool selected = false,
  5. bool initiallyExpanded = false,
  6. bool autofocus = false,
  7. FocusNode? focusNode,
  8. VoidCallback? onPress,
  9. VoidCallback? onLongPress,
  10. ValueChanged<bool>? onHoverChange,
  11. FTappableVariantChangeCallback? onVariantChange,
  12. List<Widget> children = const [],
  13. Key? key,
})

Creates a FSidebarItem.

Implementation

const FSidebarItem({
  this.style = const .context(),
  this.icon,
  this.label,
  this.selected = false,
  this.initiallyExpanded = false,
  this.autofocus = false,
  this.focusNode,
  this.onPress,
  this.onLongPress,
  this.onHoverChange,
  this.onVariantChange,
  this.children = const [],
  super.key,
});