logErrorDetails method

void logErrorDetails(
  1. FlutterErrorDetails details
)
inherited

Logs 'every' error as the error count is reset.

Implementation

void logErrorDetails(FlutterErrorDetails details) {
  // Don't when in DebugMode.
  if (!kDebugMode) {
    // Resets the count of errors to show a complete error message not an abbreviated one.
    FlutterError.resetErrorCount();
  }
  // https://docs.flutter.dev/testing/errors#errors-caught-by-flutter
  // Log the error.
  FlutterError.presentError(details);
}