registerLazySingleton<T extends Object> static method

void registerLazySingleton<T extends Object>(
  1. CDependencyInjectorBuilder<T> builder, {
  2. String? dependencyName,
})

Method used to register dependency by lazy

Implementation

static void registerLazySingleton<T extends Object>(
  CDependencyInjectorBuilder<T> builder, {
  String? dependencyName,
}) {
  _instance._injector.registerLazySingleton(
    builder,
    dependencyName: dependencyName,
  );
}