ServiceDefinition<T> constructor
const
ServiceDefinition<T> (
- T factory(
- IocContainer container
- bool isSingleton = false,
- void dispose(
- T service
Defines a factory for the service and whether or not it is a singleton.
Implementation
const ServiceDefinition(
this.factory, {
this.isSingleton = false,
this.dispose,
});