prepareFromDraft method Null safety

MessageBuilder prepareFromDraft(
  1. MimeMessage draft
)

Prepares a message builder from the specified draft mime message.

Implementation

static MessageBuilder prepareFromDraft(MimeMessage draft) {
  final builder = MessageBuilder()..originalMessage = draft;
  builder._copy(draft);
  return builder;
}