Register.singleton constructor
const
Register.singleton(})
Create an annotation that will generate a registerSingleton
method.
Implementation
const Register.singleton(
this.type, {
this.name,
this.from,
this.resolvers,
this.constructorName,
}) : oneTime = true;