Draft constructor
Draft({
- required String id,
- required String messageId,
- String? threadId,
- List<
String> to = const [], - List<
String> cc = const [], - List<
String> bcc = const [], - String? subject,
- String? body,
- required bool html,
- List<
AttachmentMeta> attachments = const [], - required DateTime createdAt,
- required DateTime updatedAt,
Returns a new Draft instance.
Implementation
Draft({
required this.id,
required this.messageId,
this.threadId,
this.to = const [],
this.cc = const [],
this.bcc = const [],
this.subject,
this.body,
required this.html,
this.attachments = const [],
required this.createdAt,
required this.updatedAt,
});