Jonny Borges
Committed by GitHub

Merge pull request #1370 from nateshmbhat/master

fixed mistakes in documentation
@@ -532,8 +532,8 @@ If you need to use your controller in many other places, and outside of GetBuild @@ -532,8 +532,8 @@ If you need to use your controller in many other places, and outside of GetBuild
532 class Controller extends GetxController { 532 class Controller extends GetxController {
533 533
534 /// You do not need that. I recommend using it just for ease of syntax. 534 /// You do not need that. I recommend using it just for ease of syntax.
535 - /// with static method: Controller.to.counter();  
536 - /// with no static method: Get.find<Controller>().counter(); 535 + /// with static method: Controller.to.increment();
  536 + /// with no static method: Get.find<Controller>().increment();
537 /// 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. 537 /// 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.
538 static Controller get to => Get.find(); // add this line 538 static Controller get to => Get.find(); // add this line
539 539
@@ -107,8 +107,8 @@ Si necesita usar su Controller en muchos otros lugares y fuera de GetBuilder, si @@ -107,8 +107,8 @@ Si necesita usar su Controller en muchos otros lugares y fuera de GetBuilder, si
107 class Controller extends GetXController { 107 class Controller extends GetXController {
108 108
109 /// You do not need that. I recommend using it just for ease of syntax. 109 /// You do not need that. I recommend using it just for ease of syntax.
110 - /// with static method: Controller.to.counter();  
111 - /// with no static method: Get.find<Controller>().counter(); 110 + /// with static method: Controller.to.increment();
  111 + /// with no static method: Get.find<Controller>().increment();
112 /// 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. 112 /// 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.
113 static Controller get to => Get.find(); // add this line 113 static Controller get to => Get.find(); // add this line
114 114
@@ -534,8 +534,8 @@ Jika anda perlu menggunakan controller anda di banyak tempat, dan diluar dari Ge @@ -534,8 +534,8 @@ Jika anda perlu menggunakan controller anda di banyak tempat, dan diluar dari Ge
534 class Controller extends GetxController { 534 class Controller extends GetxController {
535 535
536 /// Anda tidak membutuhkan itu. Saya menyarankan menggunakannya hanya untuk kemudahan sintaks. 536 /// Anda tidak membutuhkan itu. Saya menyarankan menggunakannya hanya untuk kemudahan sintaks.
537 - /// dengan static method: Controller.to.counter();  
538 - /// tanpa static method: Get.find<Controller>().counter(); 537 + /// dengan static method: Controller.to.increment();
  538 + /// tanpa static method: Get.find<Controller>().increment();
539 /// 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. 539 /// 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.
540 static Controller get to => Get.find(); // Tambahkan baris ini 540 static Controller get to => Get.find(); // Tambahkan baris ini
541 541
@@ -515,12 +515,11 @@ GetBuilder 밖의 여러 곳에서 controller를 사용해야 하는 경우, 간 @@ -515,12 +515,11 @@ GetBuilder 밖의 여러 곳에서 controller를 사용해야 하는 경우, 간
515 ```dart 515 ```dart
516 class Controller extends GetxController { 516 class Controller extends GetxController {
517 517
518 - /// 꼭 이렇게 할 필요는 없지만, 문법적으로 용이하게 사용하게 위해 이렇게 하시기를 권장합니다.  
519 - /// static 메소드로 사용할 경우: Controller.to.counter();  
520 - /// static 메소드로 사용하지 않을 경우: Get.find<Controller>().counter();  
521 - /// 이 둘 간의 성능적 차이는 없으며, 문법적 차이로 오는 부작용도 없습니다.  
522 - /// 단순히 하나는 type을 적을 필요가 없고, 다른 하나는 IDE가 자동완성 해준다는 차이점밖에 없습니다.  
523 - static Controller get to => Get.find(); // 이 코드만 추가하세요 518 + /// You do not need that. I recommend using it just for ease of syntax.
  519 + /// with static method: Controller.to.increment();
  520 + /// with no static method: Get.find<Controller>().increment();
  521 + /// 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.
  522 + static Controller get to => Get.find(); // add this line
524 523
525 int counter = 0; 524 int counter = 0;
526 void increment() { 525 void increment() {
@@ -114,8 +114,8 @@ class Controller extends GetController { @@ -114,8 +114,8 @@ class Controller extends GetController {
114 114
115 /// Você não precisa disso. Eu recomendo usar isso apenas 115 /// Você não precisa disso. Eu recomendo usar isso apenas
116 /// porque a sintaxe é mais fácil. 116 /// porque a sintaxe é mais fácil.
117 - /// com o método estático: Controller.to.counter();  
118 - /// sem o método estático: Get.find<Controller>(); 117 + /// com o método estático: Controller.to.increment();
  118 + /// sem o método estático: Get.find<Controller>().increment();
119 /// 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. 119 /// 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.
120 static Controller get to => Get.find(); // adicione esta linha 120 static Controller get to => Get.find(); // adicione esta linha
121 121
@@ -507,8 +507,8 @@ class OtherClass extends StatelessWidget { @@ -507,8 +507,8 @@ class OtherClass extends StatelessWidget {
507 class Controller extends GetxController { 507 class Controller extends GetxController {
508 508
509 /// You do not need that. I recommend using it just for ease of syntax. 509 /// You do not need that. I recommend using it just for ease of syntax.
510 - /// with static method: Controller.to.counter();  
511 - /// with no static method: Get.find<Controller>().counter(); 510 + /// with static method: Controller.to.increment();
  511 + /// with no static method: Get.find<Controller>().increment();
512 /// 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. 512 /// 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.
513 static Controller get to => Get.find(); // add this line 513 static Controller get to => Get.find(); // add this line
514 514
@@ -506,8 +506,8 @@ class OtherClass extends StatelessWidget { @@ -506,8 +506,8 @@ class OtherClass extends StatelessWidget {
506 class Controller extends GetxController { 506 class Controller extends GetxController {
507 507
508 /// 你不需要这个,我推荐使用它只是为了方便语法。 508 /// 你不需要这个,我推荐使用它只是为了方便语法。
509 - /// 用静态方法:Controller.to.counter()。  
510 - /// 没有静态方法的情况下:Get.find<Controller>().counter(); 509 + /// 用静态方法:Controller.to.increment()。
  510 + /// 没有静态方法的情况下:Get.find<Controller>().increment();
511 /// 使用这两种语法在性能上没有区别,也没有任何副作用。一个不需要类型,另一个IDE会自动完成。 511 /// 使用这两种语法在性能上没有区别,也没有任何副作用。一个不需要类型,另一个IDE会自动完成。
512 static Controller get to => Get.find(); // 添加这一行 512 static Controller get to => Get.find(); // 添加这一行
513 513