mnemo_cards/lib/features/tests/question_states/simple_test_state.dart
2024-06-11 03:28:57 +03:00

28 lines
754 B
Dart

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;
final bool isSkipped;
final int seed;
SimpleTestState({
required this.seed,
required super.word,
this.answer = '',
this.isCorrect = false,
this.isAnswered = false,
this.isSkipped = false,
super.testType = TestQuestionType.simple,
});
}