bootstrap function

Future<void> bootstrap()

Implementation

Future<void> bootstrap() async {
  await runZonedGuarded(() async {
    WidgetsFlutterBinding.ensureInitialized();
    Injector.init();
    await Injector.instance.allReady();
    Bloc.observer = AppBlocObserver();
    Logger.level = Level.verbose;
    runApp(const App());
  }, (error, stack) {
    debugPrint("MainError:$error");
  });
}