RPOrderedTask constructor

RPOrderedTask({
  1. required String identifier,
  2. bool closeAfterFinished = true,
  3. required List<RPStep> steps,
})

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;
    }
  }
}