registerInterfaceWithDependencies<TB, T extends TB> method

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

Register a serviceFactory with dependencies for a specific type.

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

Implementation

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