Email constructor
Email({
- required String id,
- String? threadId,
- String? provider,
- String? accountId,
- required String subject,
- required String from,
- List<
String> to = const [], - List<
String> cc = const [], - List<
String> bcc = const [], - required String body,
- required bool html,
- required DateTime date,
- List<
String> labels = const [], - required bool isRead,
- required bool isStarred,
- List<
AttachmentMeta> attachments = const [], - String? snippet,
- String? messageId,
- String? inReplyTo,
- 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 [],
});