Showing
1 changed file
with
0 additions
and
4 deletions
@@ -23,10 +23,6 @@ Get has a simple and powerful dependency manager that allows you to retrieve the | @@ -23,10 +23,6 @@ Get has a simple and powerful dependency manager that allows you to retrieve the | ||
23 | Controller controller = Get.put(Controller()); // Rather Controller controller = Controller(); | 23 | Controller controller = Get.put(Controller()); // Rather Controller controller = Controller(); |
24 | ``` | 24 | ``` |
25 | 25 | ||
26 | -If you don't know why dependency injection is, you can check some links to learn: | ||
27 | -- [Dependency Injection in Flutter](https://medium.com/flutter-community/dependency-injection-in-flutter-f19fb66a0740) | ||
28 | -- [Dependency Injection in Dart/Flutter Apps](https://berthacks.com/dependency-injection-in-dartflutter-apps-ck71x93uu06fqd9s1zuosczgn) | ||
29 | - | ||
30 | Instead of instantiating your class within the class you are using, you are instantiating it within the Get instance, which will make it available throughout your App. | 26 | Instead of instantiating your class within the class you are using, you are instantiating it within the Get instance, which will make it available throughout your App. |
31 | So you can use your controller (or Bloc class) normally | 27 | So you can use your controller (or Bloc class) normally |
32 | 28 |
-
Please register or login to post a comment