IocFactory<T> typedef
IocFactory<T> =
T Function(IocContainer c)
Makes one object for the container. It gets the container, so it can ask for the objects it needs.
Implementation
typedef IocFactory<T> = T Function(IocContainer c);