addSequenceId method Null safety

void addSequenceId(
  1. MimeMessage message
)

Adds the sequence ID of the specified message.

Implementation

void addSequenceId(MimeMessage message) {
  final id = message.sequenceId;
  if (id == null) {
    throw StateError('no sequence ID found in message');
  }
  add(id);
}