fromImap method Null safety

MailException fromImap(
  1. MailClient mailClient,
  2. ImapException e,
  3. [StackTrace? s]
)

Implementation

static MailException fromImap(MailClient mailClient, ImapException e,
    [StackTrace? s]) {
  return MailException(mailClient, e.message,
      stackTrace: s ?? e.stackTrace, details: e.details);
}