Question class

A class that represents a standard question and an answer that is not restricted to a set of options.

It accepts the parameters question, which is of type String, parent which is of type Map<Question,String> that is used to denote the state of its parent Question, if any. The validate parameter accepts a function to perform validation on the answer provided to the question.

Implementers

Constructors

Question({required String question, Map<Question, String?>? parent, dynamic validate})

Properties

answer TextEditingController
getter/setter pair
errorMessage String?
getter/setter pair
hasError bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
parent Map<Question, String?>?
getter/setter pair
question String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validate → dynamic
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited