QuestionProvider constructor

QuestionProvider(
  1. List<Question> _questionStructure, {
  2. dynamic leading,
  3. dynamic trailing,
  4. dynamic value,
})

Implementation

QuestionProvider(this._questionStructure,
    {this.leading, this.trailing, this.value}) {
  _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();
  if (value != null)
    setState(value);
  else
    notifyListeners();
}