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

Close a poll

Copy link

You can close a poll by specifying the pollId in the closePoll() method.

try {
  // Close an existing poll.
  final result = await channel.closePoll(pollId: POLL_ID);
} catch (e) {
  // Handle error.
}