TF-3416 Handle open EML attachment in EML previewer

This commit is contained in:
dab246
2025-01-13 15:53:58 +07:00
committed by Dat H. Pham
parent 0ce99c745c
commit aa7fded1ff
28 changed files with 473 additions and 99 deletions
@@ -0,0 +1,20 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'eml_previewer.g.dart';
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class EMLPreviewer with EquatableMixin {
final String title;
final String content;
EMLPreviewer({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];
}