FSidebarItem constructor

const FSidebarItem({
  1. FSidebarItemStyle style(
    1. FSidebarItemStyle
    )?,
  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. ValueChanged<FWidgetStatesDelta>? onStateChange,
  12. List<Widget> children = const [],
  13. Key? key,
})

Creates a FSidebarItem.

Implementation

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