fluffychat/lib/pangea/practice_activities/practice_choice.dart
2026-02-05 15:52:25 -05:00

23 lines
564 B
Dart

import 'package:fluffychat/pangea/constructs/construct_form.dart';
class PracticeChoice {
/// choiceContent
final String choiceContent;
/// Form of the associated token
final ConstructForm form;
PracticeChoice({required this.choiceContent, required this.form});
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is PracticeChoice &&
other.form == form &&
other.choiceContent == choiceContent;
}
@override
int get hashCode => form.hashCode ^ choiceContent.hashCode;
}