nextBlockIsResultPage method

bool nextBlockIsResultPage()

Implementation

bool nextBlockIsResultPage() {
  if (_isComplete || _currentNodeId == surveyFinished) return false;
  final navigation =
      SurveyLogicHandler.nextStep(survey, _currentNodeId, answers);
  final nextNode = survey.nodeById(navigation.nextNodeId);
  if (nextNode == null) return false;
  return survey.blockFor(nextNode)?.type == SurveyBlockType.resultPage;
}