checkReadyToProceed method
void
checkReadyToProceed()
Implementation
void checkReadyToProceed() {
if (stepResult == null) return;
bool temp = true;
for (var step in widget.formStep.questions) {
if (!step.optional) {
if (stepResult!.results.values.any((element) =>
(element as RPStepResult).identifier == step.identifier &&
element.results['answer'] == null)) {
temp = false;
}
}
}
if (widget.formStep.forceWait) {
if (timerFinished == false) {
temp = false;
}
}
setState(() {
readyToProceed = temp;
});
createAndSendResult();
blocQuestion.sendReadyToProceed(temp);
}