configureSentry static method
void
configureSentry()
Implementation
static void configureSentry() {
FlutterError.onError =
(FlutterErrorDetails details, {bool forceReport = false}) {
if (UtilsPlatform.isDebug) {
// In development mode, simply print to console.
FlutterError.dumpErrorToConsole(details);
} else {
// In production mode, report to the application zone to report to Sentry.
Zone.current.handleUncaughtError(details.exception, details.stack!);
}
};
}