Showing
1 changed file
with
1 additions
and
9 deletions
| @@ -632,10 +632,6 @@ final name = 'GetX'.obs; | @@ -632,10 +632,6 @@ final name = 'GetX'.obs; | ||
| 632 | // only "updates" the stream, if the value is different from the current one. | 632 | // only "updates" the stream, if the value is different from the current one. |
| 633 | name.value = 'Hey'; | 633 | name.value = 'Hey'; |
| 634 | 634 | ||
| 635 | -// this weird (and kinda cool) assignment, updates the stream no matter what | ||
| 636 | -// it takes nulls, or same value... but rebuilds the observers. | ||
| 637 | -name << 'Hey'; // ! | ||
| 638 | - | ||
| 639 | // All Rx properties are "callable" and returns the new value. | 635 | // All Rx properties are "callable" and returns the new value. |
| 640 | // but this approach does not accepts `null`, the UI will not rebuild. | 636 | // but this approach does not accepts `null`, the UI will not rebuild. |
| 641 | name('Hello'); | 637 | name('Hello'); |
| @@ -647,7 +643,7 @@ name() ; | @@ -647,7 +643,7 @@ name() ; | ||
| 647 | 643 | ||
| 648 | final count = 0.obs; | 644 | final count = 0.obs; |
| 649 | 645 | ||
| 650 | -// you can just most basic operators acts on the property! | 646 | +// You can use all non mutable operations from num primitives! |
| 651 | count + 1; | 647 | count + 1; |
| 652 | 648 | ||
| 653 | // Watch out! this is only valid if `count` is not final, but var | 649 | // Watch out! this is only valid if `count` is not final, but var |
| @@ -716,10 +712,6 @@ user.update((value){ | @@ -716,10 +712,6 @@ user.update((value){ | ||
| 716 | }); | 712 | }); |
| 717 | 713 | ||
| 718 | print( user ); | 714 | print( user ); |
| 719 | - | ||
| 720 | -// this also works. | ||
| 721 | -user << user.value; | ||
| 722 | - | ||
| 723 | ``` | 715 | ``` |
| 724 | 716 | ||
| 725 | #### GetView | 717 | #### GetView |
-
Please register or login to post a comment