bootstrap function

Future<void> bootstrap(
  1. FutureOr<Widget> builder()
)

Implementation

Future<void> bootstrap(FutureOr<Widget> Function() builder) async {
  await setupInjections();
  FlutterError.onError = AppLogger.fatalError;
  // Pass all uncaught asynchronous  errors that aren't handled by the Flutter framework to logger
  PlatformDispatcher.instance.onError = _globalErrorHandler;
  runApp(await builder());
}