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
roi peker
2020-09-04 13:26:29 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c7a4c31c510ffa56876f48f92e06ee3316955412
c7a4c31c
1 parent
969e4573
Changed _RxImpl assign operator to >>
Closes #558
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
lib/src/state_manager/rx/rx_core/rx_impl.dart
lib/src/state_manager/rx/rx_core/rx_impl.dart
View file @
c7a4c31
...
...
@@ -23,7 +23,7 @@ class _RxImpl<T> implements RxInterface<T> {
/// ```
///
/// WARNING: still WIP, needs testing!
_RxImpl
<
T
>
operator
>>
(
T
val
)
{
_RxImpl
<
T
>
operator
<<
(
T
val
)
{
subject
.
add
(
value
=
val
);
return
this
;
}
...
...
@@ -289,6 +289,8 @@ class Rx<T> extends _RxImpl<T> {
_value
=
initial
;
}
// TODO: Look for a way to throw the Exception with proper details when the
// value [T] doesn't implement toJson().
@override
dynamic
toJson
()
=>
(
value
as
dynamic
)?.
toJson
();
}
...
...
Please
register
or
login
to post a comment