You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
260 B
Dart

class QuizQuestion {
const QuizQuestion(this.text, this.answers);
final String text;
final List<String> answers;
List<String> get shuffeldAnswers {
final shuffeldList = List.of(answers);
shuffeldList.shuffle();
return shuffeldList;
}
}