hasSingleWinner property
bool
hasSingleWinner
Returns true
if there is a single winner in the election
(there is no tie).
Implementation
bool get hasSingleWinner => places.isNotEmpty && places.first.length == 1;