TF-3416 Handle preview EML attachment on mobile

This commit is contained in:
dab246
2025-01-14 01:27:48 +07:00
committed by Dat H. Pham
parent aa7fded1ff
commit 33d0e91178
17 changed files with 120 additions and 71 deletions
@@ -6,15 +6,20 @@ part 'eml_previewer.g.dart';
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class EMLPreviewer with EquatableMixin {
final String id;
final String title;
final String content;
EMLPreviewer({required this.title, required this.content});
EMLPreviewer({
required this.id,
required this.title,
required this.content,
});
factory EMLPreviewer.fromJson(Map<String, dynamic> json) => _$EMLPreviewerFromJson(json);
Map<String, dynamic> toJson() => _$EMLPreviewerToJson(this);
@override
List<Object?> get props => [title, content];
List<Object?> get props => [id, title, content];
}