launchPoll

Toggles the visibility of the poll modal based on the current state.

This function accepts LaunchPollOptions and toggles the visibility state by calling updateIsPollModalVisible with the negation of isPollModalVisible.

Example:

val options = LaunchPollOptions(
updateIsPollModalVisible = { visible -> setPollModalVisible(visible) },
isPollModalVisible = false
)

launchPoll(options)