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
Jonny Borges
2022-08-26 18:00:36 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2022-08-26 18:00:36 +0100
Commit
5229d40c75d135c121eb65411b10f883e91b4f56
5229d40c
2 parents
1246dc59
c06a5a5e
Merge pull request #2519 from Andrflor/fix_toggle
RxBool toggle fixed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/get_rx/src/rx_types/rx_core/rx_impl.dart
lib/get_rx/src/rx_types/rx_core/rx_impl.dart
View file @
5229d40
...
...
@@ -238,7 +238,7 @@ extension RxBoolExt on Rx<bool> {
/// Toggles the bool [value] between false and true.
/// A shortcut for `flag.value = !flag.value;`
void
toggle
()
{
subject
.
add
(!
value
);
call
(!
value
);
// return this;
}
}
...
...
@@ -271,7 +271,7 @@ extension RxnBoolExt on Rx<bool?> {
/// A shortcut for `flag.value = !flag.value;`
void
toggle
()
{
if
(
value
!=
null
)
{
subject
.
add
(!
value
!);
call
(!
value
!);
// return this;
}
}
...
...
Please
register
or
login
to post a comment