SidebarItems constructor

const SidebarItems({
  1. Key? key,
  2. required int currentIndex,
  3. required ValueChanged<int> onChanged,
  4. required List<SidebarItem> items,
  5. bool shrinkWrap = false,
  6. ScrollController? scrollController,
  7. Color? selectedColor,
  8. Color? unselectedColor,
  9. 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);