initDependencyInjection function

Future<void> initDependencyInjection()

Implementation

Future<void> initDependencyInjection() async {
  Future<SharedPreferences> prefs() async =>
      await SharedPreferences.getInstance();
  final sharedPreferences = await prefs();
  if (di.isRegistered<SdkParamPersistenceService>()) {
    return;
  }
  CoreDI(
    di,
    sharedPreferences,
  );
}