decodeContentMessage method Null safety

MimeMessage? decodeContentMessage()

Decodes a message/rfc822 part

Implementation

MimeMessage? decodeContentMessage() {
  final data = mimeData;
  if (data == null) {
    return null;
  }
  final message = MimeMessage()..mimeData = data.decodeMessageData();
  message.parse();
  return message;
}