registerWithDependencies<T> method

  1. @override
void registerWithDependencies<T>(
  1. ServiceFactory<T> serviceFactory,
  2. List<Type> dependencies
)
override

Register a serviceFactory with dependencies

The service factory will be called when wire method is called.

Implementation

@override
void registerWithDependencies<T>(
  ServiceFactory<T> serviceFactory,
  List<Type> dependencies,
) {
  _factories[T] = _ServiceWithDependencies(serviceFactory, dependencies);
}