factory<T> function

Bind factory<T>(
  1. _FactoryFunc<T> factory,
  2. {String? named,
  3. bool replaceIfExists = false}
)

Implementation

Bind factory<T>(
  _FactoryFunc<T> factory, {
  String? named,
  bool replaceIfExists = false,
}) {
  return Bind<T>._internal(
    factoryFunc: factory,
    isSingleton: false,
    name: named,
    type: T,
    replaceIfExists: replaceIfExists,
  );
}