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.
fluffychat/lib/pangea/practice_activities/practice_choice.dart

27 lines
577 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;
}