closeDrawer method

void closeDrawer()

Closes the drawer if it is open. Example:

FxShellScope.of(context).closeDrawer();

Implementation

void closeDrawer() {
  if (!isDrawerOpen) return;
  _scaffold?.closeDrawer();
}