getPollResultWidget method

dynamic getPollResultWidget(
  1. List<PollOptions> options,
  2. int totalVote,
  3. String chosenId,
  4. String pollId,
  5. CometChatTheme theme,
)

Implementation

getPollResultWidget(List<PollOptions> options, int totalVote, String chosenId,
    String pollId, CometChatTheme theme) {
  return Column(
    children: [
      for (int index = 0; index < options.length; index++)
        getPollBar(index, options[index].id, options, totalVote, chosenId,
            pollId, theme)
    ],
  );
}