QuizStepModel class

Constructors

QuizStepModel({required String stepKey, required String? stepLabel, String? stepDescription, bool showStepLabel = true, required List<QuizQuestionModel> allQuestions})
QuizStepModel.fromJson(Map<String, dynamic> json)

Properties

allQuestions List<QuizQuestionModel>
getter/setter pair
answerableQuestions List<QuizQuestionModel>
no setter
completionRate double
used to draw progress bar on stepper
no setter
displayableQuestions List<QuizQuestionModel>
only the question that are displayable in form
no setter
hashCode int
The hash code for this object.
no setterinherited
notAnswerableTypes List<String>
final
onlyStringTypes List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showStepLabel bool
getter/setter pair
stepDescription String?
getter/setter pair
stepKey String
getter/setter pair
stepLabel String?
getter/setter pair

Methods

computeDisplayable(QuizModel quiz) → void
used to filter out only the displayable question among all questions
isQuestionDisplayable(QuizQuestionModel question, QuizModel quiz) bool
return if the question can be displayed to user
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
valueIsCompletedFromQuestionType(QuizQuestionModel question) bool

Operators

operator ==(Object other) bool
The equality operator.
inherited