SidebarItems constructor
const
SidebarItems({
- Key? key,
- required int currentIndex,
- required ValueChanged<
int> onChanged, - required List<
SidebarItem> items, - bool shrinkWrap = false,
- ScrollController? scrollController,
- Color? selectedColor,
- Color? unselectedColor,
- ShapeBorder? shape,
Creates a scrollable widget that renders SidebarItems.
Implementation
const SidebarItems({
Key? key,
required this.currentIndex,
required this.onChanged,
required this.items,
this.shrinkWrap = false,
this.scrollController,
this.selectedColor,
this.unselectedColor,
this.shape,
}) : assert(currentIndex >= 0),
super(key: key);