Draft constructor

Draft({
  1. required String id,
  2. required String messageId,
  3. String? threadId,
  4. List<String> to = const [],
  5. List<String> cc = const [],
  6. List<String> bcc = const [],
  7. String? subject,
  8. String? body,
  9. required bool html,
  10. List<AttachmentMeta> attachments = const [],
  11. required DateTime createdAt,
  12. 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,
});