addQuestions method

void addQuestions(
  1. dynamic p_questions, {
  2. dynamic is_boolean = false,
  3. dynamic is_list = false,
  4. dynamic is_message = false,
})

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

Implementation

void addQuestions(p_questions,
    {is_boolean = false, is_list = false, is_message = false}) {
  if (is_boolean) {
    booleanQuestions!.addAll(p_questions);
  } else if (is_list) {
    listQuestions!.addAll(p_questions);
  } else if (is_message) {
    messages!.addAll(p_questions);
  } else {
    questions!.addAll(p_questions);
  }
}