FreeTextQuestion class

Inheritance
Annotations
  • @JsonSerializable()

Constructors

FreeTextQuestion({required FreeTextQuestionType textType, required List<int> lengthRange, String? customTypeExpression})
FreeTextQuestion.fromJson(Map<String, dynamic> json)
factory
FreeTextQuestion.withId({required FreeTextQuestionType textType, required List<int> lengthRange, String? customTypeExpression})

Properties

conditional ↔ QuestionConditional<String>?
getter/setter pairinherited
customTypeExpression String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
lengthRange List<int>
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
textType FreeTextQuestionType
getter/setter pair
type String
getter/setter pairinherited

Methods

constructAnswer(String response) Answer<String>
getAnswerType() Type
inherited
getDefaultAnswer() Answer<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