removeSequenceId method Null safety

void removeSequenceId(
  1. MimeMessage message
)

Removes the sequence ID of the specified message.

Implementation

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