copyWith method
Implementation
QuizState copyWith({
List<Question>? questions,
int? currentIndex,
int? score,
bool? isFinished,
int? timeLeft,
}) {
return QuizState(
questions: questions ?? this.questions,
currentIndex: currentIndex ?? this.currentIndex,
score: score ?? this.score,
isFinished: isFinished ?? this.isFinished,
timeLeft: timeLeft ?? this.timeLeft,
);
}