showAndHideOverlay method

void showAndHideOverlay([
  1. bool? show
])

Implementation

void showAndHideOverlay([bool? show]) {
  if (!isShowingChat) {
    _isShowingOverlay = show ?? !_isShowingOverlay;
    if (_isShowingOverlay) cancelCloseOverlay();
    notifyListeners();
  } else {
    isShowingChat = false;
  }
}