Showing
1 changed file
with
4 additions
and
4 deletions
@@ -117,12 +117,12 @@ class GetInstance { | @@ -117,12 +117,12 @@ class GetInstance { | ||
117 | 117 | ||
118 | S findByType<S>(Type type, {String tag}) { | 118 | S findByType<S>(Type type, {String tag}) { |
119 | String key = _getKey(type, tag); | 119 | String key = _getKey(type, tag); |
120 | - return GetConfig._singl[key].getSependency() as S; | 120 | + return GetConfig._singl[key].getDependency() as S; |
121 | } | 121 | } |
122 | 122 | ||
123 | void startController<S>({String tag}) { | 123 | void startController<S>({String tag}) { |
124 | String key = _getKey(S, tag); | 124 | String key = _getKey(S, tag); |
125 | - final i = GetConfig._singl[key].getSependency(); | 125 | + final i = GetConfig._singl[key].getDependency(); |
126 | 126 | ||
127 | if (i is DisposableInterface) { | 127 | if (i is DisposableInterface) { |
128 | i.onStart(); | 128 | i.onStart(); |
@@ -134,7 +134,7 @@ class GetInstance { | @@ -134,7 +134,7 @@ class GetInstance { | ||
134 | // final key = _getKey(S, tag); | 134 | // final key = _getKey(S, tag); |
135 | 135 | ||
136 | // if (GetConfig._singl.containsKey(key)) { | 136 | // if (GetConfig._singl.containsKey(key)) { |
137 | - // return GetConfig._singl[key].getSependency() as S; | 137 | + // return GetConfig._singl[key].getDependency() as S; |
138 | // } else { | 138 | // } else { |
139 | // if (GetConfig._factory.containsKey(key)) { | 139 | // if (GetConfig._factory.containsKey(key)) { |
140 | // S _value = put<S>((GetConfig._factory[key].builder() as S), tag: tag); | 140 | // S _value = put<S>((GetConfig._factory[key].builder() as S), tag: tag); |
@@ -166,7 +166,7 @@ class GetInstance { | @@ -166,7 +166,7 @@ class GetInstance { | ||
166 | } | 166 | } |
167 | initDependencies<S>(); | 167 | initDependencies<S>(); |
168 | 168 | ||
169 | - return GetConfig._singl[key].getSependency() as S; | 169 | + return GetConfig._singl[key].getDependency() as S; |
170 | } else { | 170 | } else { |
171 | if (!GetConfig._factory.containsKey(key)) | 171 | if (!GetConfig._factory.containsKey(key)) |
172 | throw " $S not found. You need call put<$S>($S()) before"; | 172 | throw " $S not found. You need call put<$S>($S()) before"; |
-
Please register or login to post a comment