init method

  1. @override
Future<void> init(
  1. VoidCallback runAppFunction
)
override

Implementation

@override
Future<void> init(VoidCallback runAppFunction) async {
  var catcher = Catcher(
    runAppFunction: runAppFunction,
    debugConfig: await catcherConfig.catcherDebugOptions(),
    profileConfig: await catcherConfig.catcherProfileOptions(),
    releaseConfig: await catcherConfig.catcherReleaseOptions(),
    enableLogger: catcherConfig.isLoggingEnabled(),
    navigatorKey: navigatorKey,
  );

  Application.serviceLocator.registerSingleton<Catcher>(catcher);
}