registerFactory<T extends Object> static method
void
registerFactory<T extends Object>(
- CDependencyInjectorBuilder<
T> builder, { - 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,
);
}