apply method

  1. @override
void apply(
  1. TypeDescriptor type
)
override

callback executed by the type infrastructure type the TypeDescriptor of the annotated class

Implementation

@override
void apply(TypeDescriptor type) {
  if (factory && !type.isAbstract)
    Providers.register(ClassInstanceProvider(type.type, eager: eager, scope: scope, replace: replace));
}