report property

String get report

Returns a formatted string with all reported errors.

Implementation

static String get report {
  if (_errors.isEmpty) return 'No errors reported.';
  return _errors.map((e) {
    final stackTrace = e.trackedStackTrace;
    if (stackTrace != null) {
      return '$e\nStack trace:\n$stackTrace';
    }
    return e.toString();
  }).join('\n\n');
}