registerFactory<T extends Object> static method

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

Method used to register dependency by factory

Implementation

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