QuestionHandler class
A class to create and manage the state of the questions.
accepts a parameter of type List
Constructors
-
QuestionHandler(List<
Question> _questionStructure, {dynamic callback})
Properties
Methods
-
getElementList(
) → List< FormElement> -
getWidget(
BuildContext context) → List< Widget> - This function returns a list of widgets representing the question structure.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetState(
) → void - The resetState() method is, as its name implies, used to revert the states of all the cards back to its default state(null).
-
setState(
Map< String, dynamic> doc) → void - This method is used to set the state of the cards containing the questions and answers.
-
toMap(
) → Map< String, dynamic> - This method returns a Map<String,String> object of the current state of the question cards. This format is useful for writing to a database eg Firestore.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → bool - This function is used to validate the question cards.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited