RPOrderedTask constructor
RPOrderedTask({})
Implementation
RPOrderedTask({
required super.identifier,
super.closeAfterFinished = true,
required this.steps,
}) {
for (var step in steps) {
// Counting the Question or FormStep items
if (step is RPQuestionStep) _numberOfQuestionSteps++;
// If there's a Consent Review Step among the steps it means the task is
// a Consent Task
if (step.runtimeType == RPConsentReviewStep) {
_isConsentTask = true;
}
}
}