File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 1.0.2
2+ - Fixed missing usage of ServiceFactory<T >
3+
14## 1.0.1
25
36- pub.dev suggestions implemented
Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ class DependencyContainer implements DependencyContainerInterface {
8181
8282 @override
8383 void registerWithDependencies <T >(
84- Function serviceFactory,
84+ ServiceFactory < T > serviceFactory,
8585 List <Type > dependencies,
8686 ) {
8787 _factories[T ] = _ServiceWithDependencies (serviceFactory, dependencies);
8888 }
8989
9090 @override
9191 void registerInterfaceWithDependencies <TB , T extends TB >(
92- Function serviceFactory,
92+ ServiceFactory < T > serviceFactory,
9393 List <Type > dependencies,
9494 ) {
9595 _factories[TB ] = _ServiceWithDependencies (serviceFactory, dependencies);
@@ -168,7 +168,7 @@ class DependencyContainer implements DependencyContainerInterface {
168168}
169169
170170class _ServiceWithDependencies <T > {
171- final Function serviceFactory;
171+ final ServiceFactory < T > serviceFactory;
172172 final List <Type > dependencies;
173173
174174 _ServiceWithDependencies (
Original file line number Diff line number Diff line change 11name : flutter_catalyst
2- version : 1.0.1
2+ version : 1.0.2
33description : A dependency injection container which also supports autowiring of services.
44homepage : https://github.com/mintware-de/flutter_catalyst
55environment :
You can’t perform that action at this time.
0 commit comments