nateshmbhat

fixed mistakes in documentation

... ... @@ -514,8 +514,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
... ...
... ... @@ -514,8 +514,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
... ...
... ... @@ -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
... ...
... ... @@ -507,8 +507,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(); // 添加这一行
... ...