Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Marc Liu
2020-12-27 15:27:30 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-12-27 15:27:30 -0500
Commit
370909244e42e66df9777b714183216ef924cb5f
37090924
1 parent
124ae6e4
Fix typos.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
documentation/en_US/state_management.md
documentation/en_US/state_management.md
View file @
3709092
...
...
@@ -279,8 +279,8 @@ You can remove this behavior if you want, using:
In addition, Get provides refined state control. You can condition an event (such as adding an object to a list), on a certain condition.
```
dart
// First parameter: condition, must return true of false
// Second parameter: the new value to aplly if the condition is true
// First parameter: condition, must return true or false.
// Second parameter: the new value to apply if the condition is true.
list
.
addIf
(
item
<
limit
,
item
);
```
...
...
Please
register
or
login
to post a comment