QuestionProvider constructor
QuestionProvider(})
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();
}