addQuestions method

void addQuestions(
  1. dynamic pQuestions, {
  2. dynamic isBoolean = false,
  3. dynamic isList = false,
  4. dynamic isMessage = false,
})

Same as addQuestion but you can add multiple questions (of the same type)

Implementation

void addQuestions(pQuestions,
    {isBoolean = false, isList = false, isMessage = false}) {
  if (isBoolean) {
    booleanQuestions!.addAll(pQuestions);
  } else if (isList) {
    listQuestions!.addAll(pQuestions);
  } else if (isMessage) {
    messages!.addAll(pQuestions);
  } else {
    questions!.addAll(pQuestions);
  }
}