Chat / Flutter
Current version: v3
Chat Flutter v3
Chat Flutter
Chat
Flutter
Home
/
Chat
/
Flutter
/
Message

Retrieve a poll

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

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.