Question class

Any question.

The specific type of question is known by its kind.

Constructors

Question({ChoiceQuestion? choiceQuestion, DateQuestion? dateQuestion, FileUploadQuestion? fileUploadQuestion, Grading? grading, String? questionId, bool? required, RowQuestion? rowQuestion, ScaleQuestion? scaleQuestion, TextQuestion? textQuestion, TimeQuestion? timeQuestion})
Question.fromJson(Map json_)

Properties

choiceQuestion ChoiceQuestion?
A respondent can choose from a pre-defined set of options.
getter/setter pair
dateQuestion DateQuestion?
A respondent can enter a date.
getter/setter pair
fileUploadQuestion FileUploadQuestion?
A respondent can upload one or more files.
getter/setter pair
grading Grading?
Grading setup for the question.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
questionId String?
Read only.
getter/setter pair
required bool?
Whether the question must be answered in order for a respondent to submit their response.
getter/setter pair
rowQuestion RowQuestion?
A row of a QuestionGroupItem.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleQuestion ScaleQuestion?
A respondent can choose a number from a range.
getter/setter pair
textQuestion TextQuestion?
A respondent can enter a free text response.
getter/setter pair
timeQuestion TimeQuestion?
A respondent can enter a time.
getter/setter pair

Methods

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

Operators

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