init static method
Implementation
static init(VoidCallback runApp) {
ErrorWidget.builder = (errorDetails) {
//TODO: add error widget
return Container();
};
runZonedGuarded(() async {
WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (details) {
FlutterError.dumpErrorToConsole(details);
kLog( details.stack.toString(),logStatus: LogStatus.ERROR,tag: 'INITIALIZER');
};
await _initServices();
runApp();
}, (error, stack) {
kLog('runZonedGuarded: ${error.toString()}',logStatus: LogStatus.ERROR,tag: 'INITIALIZER');
});
}