YimServiceDescriptor<T> constructor

YimServiceDescriptor<T>({
  1. T? instance,
  2. YimServiceTypeDescriptor<T>? type,
  3. required YimServiceTypeDescriptor<T> serviceType,
  4. T builder()?,
  5. YimServiceLifetime lifetime = YimServiceLifetime.singleton,
})

Implementation

YimServiceDescriptor({this.instance, this.type, required this.serviceType, this.builder, this.lifetime = YimServiceLifetime.singleton}) : assert(instance != null || builder != null);