addTransient<TService> method

ServiceCollection addTransient<TService>(
  1. ImplementationFactory implementationFactory
)

Implementation

ServiceCollection addTransient<TService>(
  ImplementationFactory implementationFactory,
) {
  final descriptor = ServiceDescriptor.transient<TService>(
    implementationFactory,
  );
  add(descriptor);
  return this;
}