deactivateSideBar static method

void deactivateSideBar({
  1. bool shouldCallToDismissPopOverlay = true,
})

Deactivate the sidebar by dismissing the pop overlay

Dismisses the currently active popup sidebar overlay. This method resets the controller state and removes the overlay from the screen.

The shouldCallToDismissPopOverlay parameter is kept for compatibility but is always true in the current implementation.

Implementation

static void deactivateSideBar({bool shouldCallToDismissPopOverlay = true}) {
  _sideBarController.refresh();
  PopOverlay.dismissPop('activate_sidebar');
}