getEmailTitle method

String getEmailTitle(
  1. Report report
)

Setup email title from report.

Implementation

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