toggleDrawer method
Implementation
void toggleDrawer(BuildContext context) {
if (Responsive.isMobile(context)) {
scaffoldKey.currentState?.openDrawer();
} else {
isDesktopDrawerOpen = !isDesktopDrawerOpen;
notifyListeners();
}
}
void toggleDrawer(BuildContext context) {
if (Responsive.isMobile(context)) {
scaffoldKey.currentState?.openDrawer();
} else {
isDesktopDrawerOpen = !isDesktopDrawerOpen;
notifyListeners();
}
}