run method
Implementation
Future run() async {
AppBootstrap._current = this;
if (!kIsWeb) {
FirebaseCrashlytics.instance
.setCrashlyticsCollectionEnabled(!kIsWeb && !kDebugMode);
}
// Pass all uncaught errors from the framework to Crashlytics.
if (!kIsWeb) {
FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError;
}
runZonedGuarded(() async {
runApp(await buildRootWidget());
}, (obj, stackTrace) {
appErrorStream.add(ErrorStack(obj, stackTrace));
_mainLog.severe("Error in app: $obj", obj, stackTrace);
analytics.encounteredError(obj, stackTrace, "App catchall");
});
}