setMailAddressHeader method Null safety

void setMailAddressHeader(
  1. String name,
  2. List<MailAddress> addresses
)

Adds the header with the specified name with the given mail addresses as its value

Implementation

void setMailAddressHeader(String name, List<MailAddress> addresses) {
  setHeader(name, addresses.map((a) => a.encode()).join(', '));
}