USideMenu constructor
const
USideMenu({
- required USideMenuController controller,
- required List<
UMenuEntry> items, - Key? key,
- USideMenuTheme? theme,
- Widget? header,
- bool enableSearch = true,
- String searchHint = "Search…",
- bool enablePinning = true,
- String pinnedSectionLabel = "PINNED",
- bool enableToggleButton = true,
- bool showRailOnMobile = true,
- double mobileBreakpoint = 720,
- double autoCollapseBreakpoint = 1000,
- String? profileName,
- String? profileSubtitle,
- Widget? profileAvatar,
- List<
UMenuItem> ? profileMenuItems, - ValueChanged<
String> ? onProfileMenuSelected, - bool? isDarkMode,
- ValueChanged<
bool> ? onToggleTheme, - String? version,
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,
});