totalVotes property
int
totalVotes
Calculates the total votes for the inquiry.
Implementation
int get totalVotes => options.fold(0, (p, e) => p + e.votes);
Calculates the total votes for the inquiry.
int get totalVotes => options.fold(0, (p, e) => p + e.votes);