Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -279,8 +279,8 @@ You can remove this behavior if you want, using: | @@ -279,8 +279,8 @@ You can remove this behavior if you want, using: | ||
| 279 | In addition, Get provides refined state control. You can condition an event (such as adding an object to a list), on a certain condition. | 279 | In addition, Get provides refined state control. You can condition an event (such as adding an object to a list), on a certain condition. |
| 280 | 280 | ||
| 281 | ```dart | 281 | ```dart |
| 282 | -// First parameter: condition, must return true of false | ||
| 283 | -// Second parameter: the new value to aplly if the condition is true | 282 | +// First parameter: condition, must return true or false. |
| 283 | +// Second parameter: the new value to apply if the condition is true. | ||
| 284 | list.addIf(item < limit, item); | 284 | list.addIf(item < limit, item); |
| 285 | ``` | 285 | ``` |
| 286 | 286 |
-
Please register or login to post a comment