FSidebar constructor

FSidebar({
  1. required List<Widget> children,
  2. Widget? header,
  3. Widget? footer,
  4. FSidebarStyle style(
    1. FSidebarStyle
    )?,
  5. bool autofocus = false,
  6. FocusScopeNode? focusNode,
  7. TraversalEdgeBehavior? traversalEdgeBehavior,
  8. double? width,
  9. Key? key,
})

Creates a sidebar with a list of children that will be wrapped in a ListView.

Implementation

FSidebar({
  required List<Widget> children,
  this.header,
  this.footer,
  this.style,
  this.autofocus = false,
  this.focusNode,
  this.traversalEdgeBehavior,
  this.width,
  super.key,
}) : assert(
       focusNode == null || traversalEdgeBehavior == null,
       'Cannot provide both a focusNode and traversalEdgeBehavior',
     ),
     child = ListView(children: children);