13 lines
260 B
Dart
13 lines
260 B
Dart
class QuizQuestion {
|
|
const QuizQuestion(this.text, this.answers);
|
|
|
|
final String text;
|
|
final List<String> answers;
|
|
|
|
List<String> get shuffledAnswers {
|
|
final shuffledList = List.of(answers);
|
|
shuffledList.shuffle();
|
|
return shuffledList;
|
|
}
|
|
}
|