getWidget method
This function returns a list of widgets representing the question structure.
This is the function that is meant to be called to see the results.
Implementation
List<Widget> getWidget(BuildContext context) {
return expanded
.map<Widget>((element) => this._getCard(context, element))
.toList();
}