ResultItem

constructor(option: Option, isWinner: Boolean, voteCount: Int, votes: List<Vote>, showAllButton: Boolean = false)

Parameters

option

The poll option associated with this result.

isWinner

True if this option has the highest vote count and is the winner.

voteCount

The total number of votes for this option.

votes

The preview list of votes for this option (typically limited to a few items).

showAllButton

True if the "Show All" button should be displayed to view all votes.