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
962 B
31 lines
962 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/answer_entity.dart';
|
|
|
|
class QuestionState {
|
|
final BaseStatus getQuestionStatus;
|
|
final LevelEntity? levelEntity;
|
|
final int currentStep;
|
|
final AnswerEntity? chooseAnswer;
|
|
|
|
const QuestionState({
|
|
this.getQuestionStatus = const BaseInit(),
|
|
this.levelEntity,
|
|
this.currentStep = 0,
|
|
this.chooseAnswer,
|
|
});
|
|
|
|
QuestionState copyWith({
|
|
BaseStatus? getQuestionStatus,
|
|
LevelEntity? levelEntity,
|
|
int? currentStep,
|
|
AnswerEntity? chooseAnswer,
|
|
}) {
|
|
return QuestionState(
|
|
getQuestionStatus: getQuestionStatus ?? this.getQuestionStatus,
|
|
levelEntity: levelEntity ?? this.levelEntity,
|
|
currentStep: currentStep ?? this.currentStep,
|
|
chooseAnswer: chooseAnswer ?? this.chooseAnswer,
|
|
);
|
|
}
|
|
}
|