Voting on a poll
The meeting.polls.vote() method can be used to register a vote on a poll.
It accepts the following params.
| Param | Type | Default Value | Required | Description |
|---|---|---|---|---|
| pollMessage | Poll | - | yes | Contains all the poll properties (question, options, etc.) |
| pollOption | PollOption | yes | yes | Option on which the user voted |
The following snippet votes for the 1st option on the 1st poll created in the meeting.
final poll = meeting.polls.items[0];
final selectedPollOption = poll.options[0];
meeting.polls.vote(poll: poll, pollOption: selectedPollOption);