warningBanner property

String get warningBanner

A loud, single-line warning for a report captured in debug mode.

Empty for the other two modes -- callers should test isTrustworthy rather than this string being non-empty, but an empty string is still the correct thing to print when nothing needs saying.

Implementation

String get warningBanner {
  if (isTrustworthy) {
    return '';
  }
  return '*** DEBUG BUILD -- these numbers are not a performance claim. '
      'JIT, assertions and framework debug checks are all on. Re-run with '
      '`flutter run --profile` (or `--release`) before citing them '
      'anywhere. ***';
}