Showing
1 changed file
with
4 additions
and
4 deletions
1 | - [State Management](#state-management) | 1 | - [State Management](#state-management) |
2 | - [Reactive State Manager](#reactive-state-manager) | 2 | - [Reactive State Manager](#reactive-state-manager) |
3 | - [Advantages](#advantages) | 3 | - [Advantages](#advantages) |
4 | - - [Usage](#usage) | ||
5 | - - [Example](#example) | 4 | + - [Declaring a reactive variable](#declaring-a-reactive-variable) |
5 | + - [Using the values in the view](#using-the-values-in-the-view) | ||
6 | - [Conditions to rebuild](#conditions-to-rebuild) | 6 | - [Conditions to rebuild](#conditions-to-rebuild) |
7 | - [Where .obs can be used](#where-obs-can-be-used) | 7 | - [Where .obs can be used](#where-obs-can-be-used) |
8 | - [Note about Lists](#note-about-lists) | 8 | - [Note about Lists](#note-about-lists) |
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | - [Workers](#workers) | 11 | - [Workers](#workers) |
12 | - [Simple State Manager](#simple-state-manager) | 12 | - [Simple State Manager](#simple-state-manager) |
13 | - [Advantages](#advantages-1) | 13 | - [Advantages](#advantages-1) |
14 | - - [Usage](#usage-1) | 14 | + - [Usage](#usage) |
15 | - [How it handles controllers](#how-it-handles-controllers) | 15 | - [How it handles controllers](#how-it-handles-controllers) |
16 | - [You won't need StatefulWidgets anymore](#you-wont-need-statefulwidgets-anymore) | 16 | - [You won't need StatefulWidgets anymore](#you-wont-need-statefulwidgets-anymore) |
17 | - [Why it exists](#why-it-exists) | 17 | - [Why it exists](#why-it-exists) |
@@ -102,7 +102,7 @@ final name = RxString(''); | @@ -102,7 +102,7 @@ final name = RxString(''); | ||
102 | final isLogged = RxBool(false); | 102 | final isLogged = RxBool(false); |
103 | final count = RxInt(0); | 103 | final count = RxInt(0); |
104 | final balance = RxDouble(0.0); | 104 | final balance = RxDouble(0.0); |
105 | -final number = RxNum(0) // in case you don't remember num is a dart type that accepts doubles and integers | 105 | +final number = RxNum(0) |
106 | final items = RxList<String>([]); | 106 | final items = RxList<String>([]); |
107 | final myMap = RxMap<String, int>({}); | 107 | final myMap = RxMap<String, int>({}); |
108 | ``` | 108 | ``` |
-
Please register or login to post a comment