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
class Controller extends GetxController {
/// 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.
static Controller get to => Get.find(); // add this line
... ...
... ... @@ -107,8 +107,8 @@ Si necesita usar su Controller en muchos otros lugares y fuera de GetBuilder, si
class Controller extends GetXController {
/// 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.
static Controller get to => Get.find(); // add this line
... ...
... ... @@ -534,8 +534,8 @@ Jika anda perlu menggunakan controller anda di banyak tempat, dan diluar dari Ge
class Controller extends GetxController {
/// 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.
static Controller get to => Get.find(); // Tambahkan baris ini
... ...
... ... @@ -515,12 +515,11 @@ GetBuilder 밖의 여러 곳에서 controller를 사용해야 하는 경우, 간
```dart
class Controller extends GetxController {
/// 꼭 이렇게 할 필요는 없지만, 문법적으로 용이하게 사용하게 위해 이렇게 하시기를 권장합니다.
/// static 메소드로 사용할 경우: Controller.to.counter();
/// static 메소드로 사용하지 않을 경우: Get.find<Controller>().counter();
/// 이 둘 간의 성능적 차이는 없으며, 문법적 차이로 오는 부작용도 없습니다.
/// 단순히 하나는 type을 적을 필요가 없고, 다른 하나는 IDE가 자동완성 해준다는 차이점밖에 없습니다.
static Controller get to => Get.find(); // 이 코드만 추가하세요
/// You do not need that. I recommend using it just for ease of syntax.
/// 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.
static Controller get to => Get.find(); // add this line
int counter = 0;
void increment() {
... ...
... ... @@ -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.
static Controller get to => Get.find(); // adicione esta linha
... ...
... ... @@ -507,8 +507,8 @@ class OtherClass extends StatelessWidget {
class Controller extends GetxController {
/// 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.
static Controller get to => Get.find(); // add this line
... ...
... ... @@ -506,8 +506,8 @@ class OtherClass extends StatelessWidget {
class Controller extends GetxController {
/// 你不需要这个,我推荐使用它只是为了方便语法。
/// 用静态方法:Controller.to.counter()。
/// 没有静态方法的情况下:Get.find<Controller>().counter();
/// 用静态方法:Controller.to.increment()。
/// 没有静态方法的情况下:Get.find<Controller>().increment();
/// 使用这两种语法在性能上没有区别,也没有任何副作用。一个不需要类型,另一个IDE会自动完成。
static Controller get to => Get.find(); // 添加这一行
... ...