Email constructor

Email({
  1. required String id,
  2. String? threadId,
  3. String? provider,
  4. String? accountId,
  5. required String subject,
  6. required String from,
  7. List<String> to = const [],
  8. List<String> cc = const [],
  9. List<String> bcc = const [],
  10. required String body,
  11. required bool html,
  12. required DateTime date,
  13. List<String> labels = const [],
  14. required bool isRead,
  15. required bool isStarred,
  16. List<AttachmentMeta> attachments = const [],
  17. String? snippet,
  18. String? messageId,
  19. String? inReplyTo,
  20. List<String> references = const [],
})

Returns a new Email instance.

Implementation

Email({
  required this.id,
  this.threadId,
  this.provider,
  this.accountId,
  required this.subject,
  required this.from,
  this.to = const [],
  this.cc = const [],
  this.bcc = const [],
  required this.body,
  required this.html,
  required this.date,
  this.labels = const [],
  required this.isRead,
  required this.isStarred,
  this.attachments = const [],
  this.snippet,
  this.messageId,
  this.inReplyTo,
  this.references = const [],
});