ServiceDescriptor constructor
ServiceDescriptor({
- required Type serviceType,
- ServiceLifetime lifetime = ServiceLifetime.singleton,
- Object? serviceKey,
- Object? implementationInstance,
- Object? implementationFactory,
Implementation
ServiceDescriptor({
required this.serviceType,
this.lifetime = ServiceLifetime.singleton,
this.serviceKey,
Object? implementationInstance,
Object? implementationFactory,
}) : _implementationInstance = implementationInstance,
_implementationFactory = implementationFactory;