recipients property

List<MailAddress> get recipients

Retrieves the mail addresses of all message recipients

Implementation

List<MailAddress> get recipients {
  final recipients = <MailAddress>[];
  final t = to;
  if (t != null) {
    recipients.addAll(t);
  }
  final c = cc;
  if (c != null) {
    recipients.addAll(c);
  }
  final b = bcc;
  if (b != null) {
    recipients.addAll(b);
  }

  return recipients;
}