launchCoHost function
- LaunchCoHostOptions options
Toggles the visibility of the co-host modal.
This function calls updateIsCoHostModalVisible
with the negated value of
isCoHostModalVisible
to toggle the modal's visibility.
Example:
final options = LaunchCoHostOptions(
updateIsCoHostModalVisible: (bool isVisible) {
// Update visibility here
},
isCoHostModalVisible: false,
);
launchCoHost(options);
// Toggles the co-host modal to visible.
Implementation
void launchCoHost(LaunchCoHostOptions options) {
options.updateIsCoHostModalVisible(!options.isCoHostModalVisible);
}