validate method
This function is used to validate the question cards.
Instances of PolarQuestion and NestedQuestion that have the isMandatory
flag set will be checked if they are equal to null or not.
Instances of Question having the validate property set to a function
will execute that function.
Implementation
bool validate() {
var questionProvider =
Provider.of<QuestionProvider>(context, listen: false);
return questionProvider.validate();
}