FSidebar.raw constructor
const
FSidebar.raw({
- required Widget child,
- Widget? header,
- FSidebarStyle style()?,
- bool autofocus = false,
- FocusScopeNode? focusNode,
- TraversalEdgeBehavior? traversalEdgeBehavior,
- double? width,
- 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',
);