@@ -514,8 +514,8 @@ If you need to use your controller in many other places, and outside of GetBuild
classControllerextendsGetxController{
/// You do not need that. I recommend using it just for ease of syntax.
/// with static method: Controller.to.counter();
/// with no static method: Get.find<Controller>().counter();
/// with static method: Controller.to.increment();
/// with no static method: Get.find<Controller>().increment();
/// There is no difference in performance, nor any side effect of using either syntax. Only one does not need the type, and the other the IDE will autocomplete it.
staticControllergetto=>Get.find();// add this line
@@ -107,8 +107,8 @@ Si necesita usar su Controller en muchos otros lugares y fuera de GetBuilder, si
classControllerextendsGetXController{
/// You do not need that. I recommend using it just for ease of syntax.
/// with static method: Controller.to.counter();
/// with no static method: Get.find<Controller>().counter();
/// with static method: Controller.to.increment();
/// with no static method: Get.find<Controller>().increment();
/// There is no difference in performance, nor any side effect of using either syntax. Only one does not need the type, and the other the IDE will autocomplete it.
staticControllergetto=>Get.find();// add this line
@@ -534,8 +534,8 @@ Jika anda perlu menggunakan controller anda di banyak tempat, dan diluar dari Ge
classControllerextendsGetxController{
/// Anda tidak membutuhkan itu. Saya menyarankan menggunakannya hanya untuk kemudahan sintaks.
/// dengan static method: Controller.to.counter();
/// tanpa static method: Get.find<Controller>().counter();
/// dengan static method: Controller.to.increment();
/// tanpa static method: Get.find<Controller>().increment();
/// Tidak ada perbedaan dari segi performa, atau efek samping apapun dalam menggunakan kedua sintaks diatas. Yang berbeda hanyalah yang satu tidak memerlukan type, dan yang satu lagi akan di autocomplete oleh IDE.
staticControllergetto=>Get.find();// Tambahkan baris ini
@@ -514,8 +514,8 @@ If you need to use your controller in many other places, and outside of GetBuild
classControllerextendsGetxController{
/// You do not need that. I recommend using it just for ease of syntax.
/// with static method: Controller.to.counter();
/// with no static method: Get.find<Controller>().counter();
/// with static method: Controller.to.increment();
/// with no static method: Get.find<Controller>().increment();
/// There is no difference in performance, nor any side effect of using either syntax. Only one does not need the type, and the other the IDE will autocomplete it.
staticControllergetto=>Get.find();// add this line
@@ -114,8 +114,8 @@ class Controller extends GetController {
/// Você não precisa disso. Eu recomendo usar isso apenas
/// porque a sintaxe é mais fácil.
/// com o método estático: Controller.to.counter();
/// sem o método estático: Get.find<Controller>();
/// com o método estático: Controller.to.increment();
/// sem o método estático: Get.find<Controller>().increment();
/// Não há diferença em performance, nem efeito colateral por usar esse sintaxe. Só uma não precisa da tipage, e a outra forma a IDE vai autocompletar.
staticControllergetto=>Get.find();// adicione esta linha
@@ -507,8 +507,8 @@ class OtherClass extends StatelessWidget {
classControllerextendsGetxController{
/// You do not need that. I recommend using it just for ease of syntax.
/// with static method: Controller.to.counter();
/// with no static method: Get.find<Controller>().counter();
/// with static method: Controller.to.increment();
/// with no static method: Get.find<Controller>().increment();
/// There is no difference in performance, nor any side effect of using either syntax. Only one does not need the type, and the other the IDE will autocomplete it.
staticControllergetto=>Get.find();// add this line