scoped<T> method

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

Implementation

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