fromUid method Null safety

MessageSequence fromUid(
  1. MimeMessage message
)

Convenience method for getting the sequence for a single message's UID.

Implementation

static MessageSequence fromUid(MimeMessage message) {
  final sequence = MessageSequence(isUidSequence: true);
  sequence.addUid(message);
  return sequence;
}