addMailAddressHeader method Null safety

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

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

Implementation

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