addQuestions method
void
addQuestions(
- dynamic pQuestions, {
- dynamic isBoolean = false,
- dynamic isList = false,
- 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);
}
}