factory<T> method

BeanDefinition<T> factory<T>(
  1. Definition<T> definition, {
  2. Qualifier? qualifier,
})

Implementation

BeanDefinition<T> factory<T>(Definition<T> definition,
    {Qualifier? qualifier}) {
  final BeanDefinition<T> def =
      Definitions.createFactory(scopeQualifier, qualifier, definition);
  definitions.add(def);
  return def;
}