From e928ca0ae010ae34ecd1bd424bb0b442c78afb0a Mon Sep 17 00:00:00 2001 From: Tiago da Costa Peixoto Date: Sat, 8 Aug 2020 16:19:55 -0300 Subject: [PATCH] fix typos --- lib/src/instance/get_instance.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/instance/get_instance.dart b/lib/src/instance/get_instance.dart index 4e48602b2..df870e45b 100644 --- a/lib/src/instance/get_instance.dart +++ b/lib/src/instance/get_instance.dart @@ -117,12 +117,12 @@ class GetInstance { S findByType(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({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(); @@ -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((GetConfig._factory[key].builder() as S), tag: tag); @@ -166,7 +166,7 @@ class GetInstance { } initDependencies(); - 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";