keyedSingletonInstance<TService> static method
Creates an instance of ServiceDescriptor with the specified
serviceKey, implementationInstance,
and the ServiceLifetime.singleton lifetime.
Implementation
static ServiceDescriptor keyedSingletonInstance<TService>(
Object? serviceKey,
Object implementationInstance,
) =>
ServiceDescriptor._instance(
serviceType: TService,
serviceKey: serviceKey,
instance: implementationInstance,
);