totalVotes property

int get totalVotes

Implementation

int get totalVotes =>
    options.fold(0, (total, option) => total + option.voteCount);