QuizState class

Constructors

QuizState.new({List<Question> questions = const [], int currentIndex = 0, int score = 0, bool isFinished = false, int timeLeft = 10})

Properties

currentIndex int
final
hashCode int
The hash code for this object.
no setterinherited
isFinished bool
final
questions List<Question>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
final
timeLeft int
final

Methods

copyWith({List<Question>? questions, int? currentIndex, int? score, bool? isFinished, int? timeLeft}) QuizState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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