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

29 lines
754 B
Dart
Raw Normal View History

2024-05-22 20:48:44 +00:00
import 'dart:math';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:mnemo_cards/features/tests/question_states/test_question_state.dart';
import 'package:mnemo_cards_common/mnemo_cards_common.dart';
part 'simple_test_state.g.dart';
@JsonSerializable()
@CopyWith()
class SimpleTestState extends TestQuestionState {
final String answer;
final bool isCorrect;
final bool isAnswered;
2024-06-08 23:34:38 +00:00
final bool isSkipped;
2024-05-22 20:48:44 +00:00
final int seed;
SimpleTestState({
required this.seed,
2024-06-11 00:28:57 +00:00
required super.word,
2024-05-22 20:48:44 +00:00
this.answer = '',
this.isCorrect = false,
this.isAnswered = false,
2024-06-08 23:34:38 +00:00
this.isSkipped = false,
2024-05-22 20:48:44 +00:00
super.testType = TestQuestionType.simple,
});
}