toggleOverlay method

void toggleOverlay()

Toggles the overlay visibility.

Implementation

void toggleOverlay() {
  if (_isOverlayVisible) {
    hideOverlay();
  } else {
    showOverlay();
  }
}