FitbitQuestion class
- Inheritance
-
- Object
- Question<
FitbitQuestion> - FitbitQuestion
- Annotations
-
- @JsonSerializable.new()
Constructors
-
FitbitQuestion({required List<
FitbitQuestionType> types}) -
FitbitQuestion.fromJson(Map<
String, dynamic> json) -
factory
-
FitbitQuestion.withId({required String questionType, required List<
FitbitQuestionType> types})
Properties
-
conditional
↔ QuestionConditional<
FitbitQuestion> ? -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pairinherited
- 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
-
types
↔ List<
FitbitQuestionType> -
getter/setter pair
Methods
-
constructAnswer(
List< FitbitData> data) → Answer<List< FitbitData> > -
getAnswerType(
) → Type -
inherited
-
getDefaultAnswer(
) → Answer< FitbitQuestion> ? -
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