RPChoiceAnswerFormat class

Class representing an Answer Format that lets participants choose from a fixed set of choices.

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

RPChoiceAnswerFormat()
RPChoiceAnswerFormat.fromJson(Map<String, dynamic> json)
factory
RPChoiceAnswerFormat.withParams(ChoiceAnswerStyle answerStyle, List<RPChoice> _choices)
Returns an initialized choice answer format with the given ChoiceAnswerStyle and the set of RPChoices.

Properties

answerStyle ChoiceAnswerStyle
read / write
choices ↔ dynamic
An array of available RPChoice objects which represent the choices to the participant.
read / write
questionBody → Widget
The widget (UI representation) of the Answer Format [...]
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
questionType QuestionType
The Question Type of the Answer Format. Should be implemented in the subclasses.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() Map<String, dynamic>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited