Chat / Flutter
Chat Flutter v3
Chat Flutter
Chat
Flutter
Version 3
Home
/
Chat
/
Flutter
/
Message

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.