USideMenu constructor

const USideMenu({
  1. required USideMenuController controller,
  2. required List<UMenuEntry> items,
  3. Key? key,
  4. USideMenuTheme? theme,
  5. Widget? header,
  6. bool enableSearch = true,
  7. String searchHint = "Search…",
  8. bool enablePinning = true,
  9. String pinnedSectionLabel = "PINNED",
  10. bool enableToggleButton = true,
  11. bool showRailOnMobile = true,
  12. double mobileBreakpoint = 720,
  13. double autoCollapseBreakpoint = 1000,
  14. String? profileName,
  15. String? profileSubtitle,
  16. Widget? profileAvatar,
  17. List<UMenuItem>? profileMenuItems,
  18. ValueChanged<String>? onProfileMenuSelected,
  19. bool? isDarkMode,
  20. ValueChanged<bool>? onToggleTheme,
  21. String? version,
  22. Widget? footer,
})

Implementation

const USideMenu({
  required this.controller,
  required this.items,
  super.key,
  this.theme,
  this.header,
  this.enableSearch = true,
  this.searchHint = "Search…",
  this.enablePinning = true,
  this.pinnedSectionLabel = "PINNED",
  this.enableToggleButton = true,
  this.showRailOnMobile = true,
  this.mobileBreakpoint = 720,
  this.autoCollapseBreakpoint = 1000,
  this.profileName,
  this.profileSubtitle,
  this.profileAvatar,
  this.profileMenuItems,
  this.onProfileMenuSelected,
  this.isDarkMode,
  this.onToggleTheme,
  this.version,
  this.footer,
});