Get It - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App. Maintainer: @escamoteur
The registerCachedFactoryParam function implies that params can be passed. Equivalent to registerFactoryParam. This case is not checked in the implementation of getObject in the get_it_impl file.
assert(
!(factoryType != _ServiceFactoryType.alwaysNew &&
(param1 != null || param2 != null)),
'You can only pass parameters to factories!',
);
I think the assertion should be done on a case by case bases depending on the _ServiceFactoryType.
The registerCachedFactoryParam function implies that params can be passed. Equivalent to registerFactoryParam. This case is not checked in the implementation of getObject in the get_it_impl file.
I think the assertion should be done on a case by case bases depending on the _ServiceFactoryType.