mnemo_cards/lib/features/tests/question_states/test_question_state.dart

24 lines
527 B
Dart
Raw Normal View History

2024-05-22 20:48:44 +00:00
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:mnemo_cards_common/mnemo_cards_common.dart';
part 'test_question_state.g.dart';
@CopyWith()
class TestQuestionState {
final TestQuestionType testType;
bool get isCorrect => false;
2024-06-11 00:28:57 +00:00
// isAnswered == not skipped by scrolling
2024-06-08 23:34:38 +00:00
final bool isAnswered;
final bool isSkipped;
2024-06-11 00:28:57 +00:00
final String word;
2024-05-22 20:48:44 +00:00
const TestQuestionState({
required this.testType,
2024-06-11 00:28:57 +00:00
required this.word,
2024-06-08 23:34:38 +00:00
this.isAnswered = false,
this.isSkipped = false,
2024-05-22 20:48:44 +00:00
});
}