/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
Version 4

Add a poll option

Copy link

You can add a poll option to an existing poll by passing the pollId and the optionText as an argument to the parameter in the addPollOption() method.

try {
  // Add options to an existing poll.
  final poll = await channel.addPollOption(pollId: POLL_ID, optionText: '3');
} catch (e) {
  // Handle error.
}