ScaleQuestion class
- Inheritance
-
- Object
- Question<
num> - SliderQuestion
- ScaleQuestion
- Implemented types
- Annotations
-
- @JsonSerializable()
Constructors
- ScaleQuestion()
- ScaleQuestion.fromAnnotatedScaleQuestion(AnnotatedScaleQuestion question)
-
factory
-
ScaleQuestion.fromJson(Map<
String, dynamic> json) -
factory
- ScaleQuestion.fromVisualAnalogueQuestion(VisualAnalogueQuestion question)
-
factory
- ScaleQuestion.withId()
Properties
-
annotations
↔ List<
Annotation> -
getter/setter pairoverride
-
annotationsSorted
→ List<
Annotation> -
no setter
- autostep → int
-
no setter
-
conditional
↔ QuestionConditional<
num> ? -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pairinherited
- initial ↔ double
-
getter/setter pairinherited
- isAutostep → bool
-
no setter
- maxAnnotation → Annotation?
-
no setter
- maxColor ↔ int?
-
getter/setter pair
- maximum ↔ double
-
getter/setter pairinherited
- maximumAnnotation ↔ String
-
getter/setter pairoverride
- maximumColor ↔ int
-
getter/setter pairoverride
- maxLabel ↔ String?
-
getter/setter pair
-
midAnnotations
↔ List<
Annotation> -
getter/setter pair
-
midLabels
→ List<
String> -
no setter
-
midValues
→ List<
double> -
no setter
- minAnnotation → Annotation?
-
no setter
- minColor ↔ int?
-
getter/setter pair
- minimum ↔ double
-
getter/setter pairinherited
- minimumAnnotation ↔ String
-
getter/setter pairoverride
- minimumColor ↔ int
-
getter/setter pairoverride
- minLabel ↔ String?
-
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
- step ↔ double
-
getter/setter pairoverride
- type ↔ String
-
getter/setter pairinherited
-
values
→ List<
double> -
no setter
Methods
-
addAnnotation(
{required int value, required String label}) → Annotation -
constructAnswer(
double response) → Answer< num> -
inherited
-
getAnswerType(
) → Type -
inherited
-
getDefaultAnswer(
) → Answer< num> ? -
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
Static Methods
-
generateMidValues(
{required int scaleMinValue, required int scaleMaxValue, int numValuesGenerated = 10}) → List< int> -
getAutostepSize(
{required int scaleMaxValue, int numValuesGenerated = 10}) → int
Constants
- questionType → const String