ChoiceQuestion class

Inheritance
Annotations
  • @JsonSerializable()

Constructors

ChoiceQuestion()
ChoiceQuestion.fromJson(Map<String, dynamic> json)
factory
ChoiceQuestion.withId()

Properties

choices List<Choice>
getter/setter pair
conditional ↔ QuestionConditional<List<String>>?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
multiple bool
getter/setter pair
prompt String?
getter/setter pairinherited
rationale String?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
getter/setter pairinherited

Methods

constructAnswer(List<Choice> selected) Answer<List<String>>
getAnswerType() Type
inherited
getDefaultAnswer() Answer<List<String>>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldBeShown(QuestionnaireState state) bool
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

questionType → const String