FSidebar.raw constructor

const FSidebar.raw({
  1. required Widget child,
  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 custom content widget.

Use this constructor when you want to provide your own scrollable content widget instead of using the default ListView.

Implementation

const FSidebar.raw({
  required this.child,
  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',
     );