Register.factory constructor

const Register.factory(
  1. Type type, {
  2. String? name,
  3. Type? from,
  4. Map<Type, String>? resolvers,
  5. String? constructorName,
})

Create an annotation that will generate a registerFactory method.

Implementation

const Register.factory(
  this.type, {
  this.name,
  this.from,
  this.resolvers,
  this.constructorName,
}) : oneTime = null;