QuestionHandler constructor

QuestionHandler(
  1. List<Question> _questionStructure, {
  2. dynamic callback,
})

Implementation

QuestionHandler(this._questionStructure, {this.callback}) {
  expanded = _questionStructure.map((e) {
    Map<Question, String?> temp = new Map<Question, String?>();
    if (!(e is NestedQuestion || e is PolarQuestion))
      e.answer = new TextEditingController();
    temp[e] = null;
    print(temp.keys);
    return temp;
  }).toList();

  // _stream.sink.add(expanded);
  callback();
}