removeHeader method Null safety

void removeHeader(
  1. String name
)

Removes the header with the specified name.

Compare MailConventions for common header names. Set encoding to any of the HeaderEncoding formats to encode the header.

Implementation

void removeHeader(String name) {
  _part.removeHeader(name);
}