Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagocpeixoto committed Aug 8, 2020
1 parent 14a5fa0 commit e928ca0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/instance/get_instance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ class GetInstance {

S findByType<S>(Type type, {String tag}) {
String key = _getKey(type, tag);
return GetConfig._singl[key].getSependency() as S;
return GetConfig._singl[key].getDependency() as S;
}

void startController<S>({String tag}) {
String key = _getKey(S, tag);
final i = GetConfig._singl[key].getSependency();
final i = GetConfig._singl[key].getDependency();

if (i is DisposableInterface) {
i.onStart();
Expand All @@ -134,7 +134,7 @@ class GetInstance {
// final key = _getKey(S, tag);

// if (GetConfig._singl.containsKey(key)) {
// return GetConfig._singl[key].getSependency() as S;
// return GetConfig._singl[key].getDependency() as S;
// } else {
// if (GetConfig._factory.containsKey(key)) {
// S _value = put<S>((GetConfig._factory[key].builder() as S), tag: tag);
Expand Down Expand Up @@ -166,7 +166,7 @@ class GetInstance {
}
initDependencies<S>();

return GetConfig._singl[key].getSependency() as S;
return GetConfig._singl[key].getDependency() as S;
} else {
if (!GetConfig._factory.containsKey(key))
throw " $S not found. You need call put<$S>($S()) before";
Expand Down

0 comments on commit e928ca0

Please sign in to comment.