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