ClueSideBarComponent constructor

const ClueSideBarComponent({
  1. Key? key,
  2. required String title,
  3. required void titleOnTap()?,
  4. required String logoTitle,
  5. required List<ClueSideBarInfo> infoList,
  6. required List<ClueSideBarItem> itemList,
  7. required Widget child,
  8. Widget? leftArrow,
  9. Widget? rightArrow,
})

Creates a ClueSideBarComponent.

title is the title displayed at the top of the sidebar. titleOnTap is the callback function when the title is tapped. logo is the logo widget displayed below the title. logoTitle is the title displayed below the logo. infoList is the list of information items to display. itemList is the list of navigation items to display. child is the main content widget displayed next to the sidebar. leftArrow is the widget displayed when the sidebar is expanded. rightArrow is the widget displayed when the sidebar is collapsed.

Implementation

const ClueSideBarComponent({
  super.key,
  required this.title,
  required this.titleOnTap,
  required this.logo,
  required this.logoTitle,
  required this.infoList,
  required this.itemList,
  required this.child,
  this.leftArrow,
  this.rightArrow,
});