/ 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

Retrieve a poll

Copy link

You can retrieve a specific poll by creating and passing a PollRetrievalParams object as an argument to the get() method.

Poll poll = await Poll.get(
    params: PollRetrievalParams(
      channelType: channel.channelType,
      channelUrl: channel.channelUrl,
      pollId: result.id,
    ),
  );

PollRetrievalParams

Copy link
Parameter nameTypeDescription

channelUrl

String

Specifies the URL of the channel.

channelType

ChannelType

Specifies the type of the channel.

pollId

int

Specifies the unique ID of a poll.