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

Retrieve a list of voters

Create a PollVoterListQuery instance to retrieve a list of voters matching the specifications set by PollVoterListQueryParams. After a list of voters is successfully retrieved, you can access the data of each voter from the result list through the votes parameter of the callback handler.

// Retrieve a list of voters.
final result = await PollVoterListQuery(
    params: PollVoterListQueryParams(
    pollId: poll1.id,
    pollOptionId: poll1.options[0].id,
    channelType: channel.channelType,
    channelUrl: channel.channelUrl,
    )).loadNext();

PollVoterListQueryParams

Parameter nameTypeDescription

pollId

int

Specifies the unique ID of a poll.

pollOptionId

int

Specifies the unique ID of a poll option.

channelType

ChannelType

Specifies the type of the channel.

channelUrl

String

Specifies the URL of the channel.

limit

int

Specifies the number of results to retrieve per page. Acceptable values are 1 to 100, inclusive. (Default: 20)