voteColor property

Color voteColor

voteColor is the dot color corresponding to voteResult boolean :

Implementation

Color get voteColor {
  if (voteResult == null) {
    return hemicyleVoteAbstention;
  } else {
    if (voteResult == true) {
      return hemicyleVoteFor;
    } else {
      return hemicyleVoteAgainst;
    }
  }
}