QuizQuestionModel class
Constructors
-
QuizQuestionModel({required String type, required Params params, required String questionKey, required String label, required String? shortLabel, required dynamic value, List<
QuizOptionModel> ? options, DisplayConditionModel? displayCondition, required bool enabled, required bool internal, required WhyConfig? whyConfig, required bool? whyTrue, required bool? whyFalse}) -
QuizQuestionModel.fromJson(Map<
String, dynamic> json)
Properties
- displayCondition ↔ DisplayConditionModel?
-
getter/setter pair
- enabled ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- internal ↔ bool
-
getter/setter pair
- label ↔ String
-
getter/setter pair
-
options
↔ List<
QuizOptionModel> ? -
getter/setter pair
- other ↔ OtherOptionConfig?
-
getter/setter pair
- params ↔ Params
-
getter/setter pair
- questionKey ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortLabel ↔ String?
-
getter/setter pair
- type ↔ String
-
getter/setter pair
- useQuizOptionModelToFormatAnswer → bool
-
Question types that use QuizOptionModel to format responses
usefull in recap part to show answers
no setter
- value ↔ dynamic
-
getter/setter pair
- whyConfig ↔ WhyConfig?
-
getter/setter pair
- whyFalse ↔ bool?
-
getter/setter pair
- whyTrue ↔ bool?
-
getter/setter pair
Methods
-
affectFinalWhyConfig(
) → WhyConfig? -
getOtherValue(
String? newValue) → String? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBoolListValue(
List< bool> newListValues) → void -
setBoolValue(
bool? newValue) → void -
setDoubleValue(
double? newValue) → void -
setNSPValue(
{required int? newValue, required int max}) → void -
setOtherValue(
String? newValue) → void -
setStringListValue(
List< String> newListValues) → void -
setStringValue(
String? newValue) → void -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited