Chat / Flutter
Chat Flutter v3
Chat Flutter
Chat
Flutter
Version 3
Home
/
Chat
/
Flutter
/
Message
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Update a poll option

Copy link

You can update a poll option by specifying the pollId, the pollOptionId, and an updated string for optionText parameters in the updatePollOption() method.

// Update the text of a poll option.
Poll poll = await channel.updatePollOption(
pollId: result.id,
pollOptionId: result.options[0].id,
optionText: 'test',
);