shown property

Question? get shown

A pergunta mostrada: a da revelação, se houver; a do acerto que fica à vista; senão a da sessão.

Implementation

Question? get shown {
  final review = state.review.reviewIndex;
  if (review != null) return round.questions[review];
  final hold = state.review.holdIndex;
  if (hold != null) return round.questions[hold];
  return _session.current;
}