FSidebar.builder constructor
FSidebar.builder({
- required Widget itemBuilder(),
- required int itemCount,
- FSidebarStyle style()?,
- Widget? header,
- bool autofocus = false,
- FocusScopeNode? focusNode,
- TraversalEdgeBehavior? traversalEdgeBehavior,
- double? width,
- Key? key,
Creates a sidebar with a builder function that will be wrapped in a ListView.builder.
Implementation
FSidebar.builder({
required Widget Function(BuildContext, int) itemBuilder,
required int itemCount,
this.style,
this.header,
this.footer,
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.builder(itemBuilder: itemBuilder, itemCount: itemCount);