You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
975 B

import 'package:hadi_hoda_flutter/core/status/base_status.dart';
import 'package:hadi_hoda_flutter/features/level/domain/entity/level_entity.dart';
import 'package:hadi_hoda_flutter/features/question/domain/entity/question_entity.dart';
class QuestionState {
final BaseStatus getQuestionStatus;
final LevelEntity? levelEntity;
final QuestionEntity? currentQuestion;
final bool? correctAnswer;
const QuestionState({
this.getQuestionStatus = const BaseInit(),
this.levelEntity,
this.currentQuestion,
this.correctAnswer,
});
QuestionState copyWith({
BaseStatus? getQuestionStatus,
LevelEntity? levelEntity,
QuestionEntity? currentQuestion,
bool? correctAnswer,
}) {
return QuestionState(
getQuestionStatus: getQuestionStatus ?? this.getQuestionStatus,
levelEntity: levelEntity ?? this.levelEntity,
currentQuestion: currentQuestion ?? this.currentQuestion,
correctAnswer: correctAnswer,
);
}
}