instance<TService extends Object> static method
Creates a singleton service descriptor for the specified TService
type
with specified implementationInstance.
Implementation
static ServiceDescriptor instance<TService extends Object>(
TService instance,
) {
return ServiceDescriptor._(
TService,
ServiceLifetime.singleton,
null,
instance,
null,
false,
);
}