YimServiceDescriptor<T> constructor
YimServiceDescriptor<T> ({
- T? instance,
- YimServiceTypeDescriptor<
T> ? type, - required YimServiceTypeDescriptor<
T> serviceType, - T builder()?,
- YimServiceLifetime lifetime = YimServiceLifetime.singleton,
Implementation
YimServiceDescriptor({this.instance, this.type, required this.serviceType, this.builder, this.lifetime = YimServiceLifetime.singleton}) : assert(instance != null || builder != null);