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