saveDraftMessage method Null safety

Future<UidResponseCode?> saveDraftMessage(
  1. MimeMessage message
)

Appends the message to the drafts mailbox with the \Draft and \Seen message flags.

Implementation

Future<UidResponseCode?> saveDraftMessage(MimeMessage message) {
  return appendMessageToFlag(message, MailboxFlag.drafts,
      flags: [MessageFlags.draft, MessageFlags.seen]);
}