factory<T extends Object> static method

Bind<T> factory<T extends Object>(
  1. T inject(
    1. Injector i
    ), {
  2. bool export = false,
})

Bind a factory. Always a new constructor when calling Modular.get

Implementation

static Bind<T> factory<T extends Object>(T Function(Injector i) inject,
    {bool export = false}) {
  return Bind<T>(inject,
      isSingleton: false, isLazy: true, isScoped: false, export: export);
}