nominate method

void nominate(
  1. OrderedTipState candidate
)

Implementation

void nominate(OrderedTipState candidate) {
  final oldLength = candidates.length;
  candidates[candidate.id] = candidate;
  if (oldLength + 1 == widget.candidateLength) {
    Future<void>.delayed(Duration.zero).then((_) => raiseElection());
  }
}