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.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							733 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							733 B
						
					
					
				| import 'package:hadi_hoda_flutter/core/utils/storage_path.dart'; | |
| import 'package:hadi_hoda_flutter/features/question/domain/entity/file_entity.dart'; | |
| import 'package:hive/hive.dart'; | |
| 
 | |
| part 'answer_entity.g.dart'; | |
| 
 | |
| @HiveType(typeId: 3) | |
| class AnswerEntity extends HiveObject { | |
|   @HiveField(0) | |
|   int? id; | |
|   @HiveField(1) | |
|   String? title; | |
|   @HiveField(2) | |
|   String? imageId; | |
|   @HiveField(3) | |
|   FileEntity? imageInfo; | |
|   @HiveField(4) | |
|   int? order; | |
|   @HiveField(5) | |
|   bool? isActive; | |
|   @HiveField(6) | |
|   String? image; | |
| 
 | |
|   AnswerEntity({ | |
|     this.id, | |
|     this.title, | |
|     this.imageId, | |
|     this.imageInfo, | |
|     this.order, | |
|     this.isActive, | |
|     this.image, | |
|   }){ | |
|     image = '${StoragePath.documentDir.path}/images/${imageInfo?.filename}'; | |
|   } | |
| }
 |