addUid method Null safety

void addUid(
  1. MimeMessage message
)

Adds the UID of the specified message.

Implementation

void addUid(MimeMessage message) {
  final uid = message.uid;
  if (uid == null) {
    throw StateError('no UID found in message');
  }
  add(uid);
}