launchParticipants function
- LaunchParticipantsOptions options
Toggles the visibility of the participants modal.
This function takes an options
parameter of type LaunchParticipantsOptions,
which includes:
updateIsParticipantsModalVisible
: A callback function to update the visibility state of the participants modal.isParticipantsModalVisible
: The current visibility state of the participants modal.
Example:
final options = LaunchParticipantsOptions(
updateIsParticipantsModalVisible: (isVisible) => print("Participants modal visible: $isVisible"),
isParticipantsModalVisible: true,
);
launchParticipants(options);
// This will toggle the visibility state of the participants modal.
Implementation
void launchParticipants(LaunchParticipantsOptions options) {
options.updateIsParticipantsModalVisible(!options.isParticipantsModalVisible);
}