toggleDrawer method

void toggleDrawer(
  1. BuildContext context
)

Implementation

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