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,
  });
}
