addQuestions method
void
addQuestions(
- dynamic p_questions, {
- dynamic is_boolean = false,
- dynamic is_list = false,
- 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);
}
}