closeDrawer method
Implementation
void closeDrawer(BuildContext? context) {
context ??= scaffoldKey.currentContext;
if (context != null && isDrawerOpen) Navigator.pop(context);
}
void closeDrawer(BuildContext? context) {
context ??= scaffoldKey.currentContext;
if (context != null && isDrawerOpen) Navigator.pop(context);
}