Jonny Borges
Committed by GitHub

Merge pull request #133 from rochadaniel/master

Fix isRegistered 'name' param
@@ -692,7 +692,7 @@ class Get { @@ -692,7 +692,7 @@ class Get {
692 692
693 /// Find a instance from required class 693 /// Find a instance from required class
694 static S find<S>({String name, _FcBuilderFunc<S> instance}) { 694 static S find<S>({String name, _FcBuilderFunc<S> instance}) {
695 - if (Get.isRegistred<S>()) { 695 + if (Get.isRegistred<S>(name: name)) {
696 String key = _getKey(S, name); 696 String key = _getKey(S, name);
697 _FcBuilder builder = Get()._singl[key]; 697 _FcBuilder builder = Get()._singl[key];
698 if (builder == null) { 698 if (builder == null) {
1 name: get 1 name: get
2 description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get. 2 description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
3 -version: 2.5.8 3 +version: 2.5.9
4 homepage: https://github.com/jonataslaw/get 4 homepage: https://github.com/jonataslaw/get
5 5
6 environment: 6 environment: