You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							550 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							550 B
						
					
					
				| import 'package:flutter/cupertino.dart'; | |
| 
 | |
| sealed class QuestionEvent { | |
|   const QuestionEvent(); | |
| } | |
| 
 | |
| class GetLevelEvent extends QuestionEvent { | |
|   final String? id; | |
|   final BuildContext context; | |
|   const GetLevelEvent(this.id, this.context); | |
| } | |
| 
 | |
| class ChooseAnswerEvent extends QuestionEvent { | |
|   final bool chooseCorrectAnswer; | |
|   final int correctAnswer; | |
|   final BuildContext context; | |
|   const ChooseAnswerEvent(this.chooseCorrectAnswer, this.correctAnswer, this.context); | |
| } | |
| 
 | |
| class GetNextLevelEvent extends QuestionEvent { | |
|   const GetNextLevelEvent(); | |
| }
 |