NestedQuestion constructor

NestedQuestion({
  1. required dynamic question,
  2. dynamic answers = const ["Yes", "No"],
  3. dynamic children,
  4. dynamic parent,
  5. dynamic isMandatory = false,
})

Implementation

NestedQuestion(
    {required question,
    answers = const ["Yes", "No"],
    children,
    parent,
    isMandatory = false})
    : super(question: question, answers: answers) {
  this.question = question;
  this.answers = answers;
  this.children = children;
  this.parent = parent;
  this.isMandatory = isMandatory;
}