onReported method

void onReported(
  1. ReportRecord record
)

Called when this exception is reported by the Log system.

If using the StandardAppPlugin system and userLogLevel == Level.SHOUT, it navigates to the page defined in StandardErrorPageFactory.

Implementation

void onReported(ReportRecord record) {
  if (userLogLevel == Level.SHOUT) {
    _app?.getPlugin<StandardAppPlugin>()?.delegate?.goErrorPage(record);
  }
}