WebDrawer constructor
const
WebDrawer({
- Key? key,
- required dynamic onMenuTap(
- required Function onLogOutClick,
- required Color drawerTextSelectedColor,
- Color drawerBackground = const Color(0xFF0D1B2A),
- Widget? prefix,
- Widget? drawerHeader,
- Widget? drawerIcon,
- Color? profileBackground,
- String? name,
- String? lastName,
- String? email,
- String? version,
- Color drawerIconColor = DrawerColors.drawerIconColor,
- double drawerIconSize = 18,
- bool isSearchShow = false,
- required TextStyle drawerTextStyle,
- bool isShowClearIcon = false,
Implementation
const WebDrawer({
super.key,
required this.menuItems,
required this.onMenuTap,
required this.onLogOutClick,
required this.drawerTextSelectedColor,
this.drawerBackground = const Color(0xFF0D1B2A),
Widget? prefix,
this.drawerHeader,
Widget? drawerIcon,
Color? profileBackground,
this.name,
this.lastName,
this.email,
this.version,
this.drawerIconColor = DrawerColors.drawerIconColor,
this.drawerIconSize = 18,
this.isSearchShow = false,
required this.drawerTextStyle,
this.isShowClearIcon = false,
}) : prefix = prefix ?? const SizedBox.shrink(),
drawerIcon = drawerIcon ?? const Icon(Icons.menu),
profileBackground = profileBackground ?? Colors.white;