/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
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',
);