launchConfirmExit

Toggles the visibility of the confirmation exit modal.

This function calls updateIsConfirmExitModalVisible with the negated value of isConfirmExitModalVisible to toggle the modal's visibility.

Example:

val options = LaunchConfirmExitOptions(
updateIsConfirmExitModalVisible = { isVisible ->
// Update visibility state here
},
isConfirmExitModalVisible = false
)

launchConfirmExit(options)
// This will open the modal if it's currently closed, or close it if it's open.