Setup email title from report.
report
String getEmailTitle(Report report) { if (emailTitle?.isNotEmpty == true) { return emailTitle!; } else { return "Error report: >> ${report.error} <<"; } }