EmailAutoHandler constructor

EmailAutoHandler(
  1. String smtpHost,
  2. int smtpPort,
  3. String senderEmail,
  4. String senderName,
  5. String senderPassword,
  6. List<String> recipients, {
  7. String? senderUsername,
  8. bool enableSsl = false,
  9. bool sendHtml = true,
  10. bool printLogs = false,
  11. String? emailTitle,
  12. String? emailHeader,
  13. bool enableDeviceParameters = true,
  14. bool enableApplicationParameters = true,
  15. bool enableStackTrace = true,
  16. bool enableCustomParameters = true,
})

Implementation

EmailAutoHandler(
  this.smtpHost,
  this.smtpPort,
  this.senderEmail,
  this.senderName,
  this.senderPassword,
  this.recipients, {
  this.senderUsername,
  this.enableSsl = false,
  this.sendHtml = true,
  this.printLogs = false,
  super.emailTitle,
  super.emailHeader,
  super.enableDeviceParameters = true,
  super.enableApplicationParameters = true,
  super.enableStackTrace = true,
  super.enableCustomParameters = true,
}) : assert(recipients.isNotEmpty, "Recipients can't be null or empty");