ServiceDescriptor constructor

ServiceDescriptor({
  1. required Type serviceType,
  2. ServiceLifetime lifetime = ServiceLifetime.singleton,
  3. Object? serviceKey,
  4. Object? implementationInstance,
  5. Object? implementationFactory,
})

Implementation

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