EmailAutoHandler constructor

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

Implementation

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