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
Phawin
2021-04-27 14:35:00 +0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
97f5be67516f32d5b34b0392e331d9b6a11d6ae6
97f5be67
1 parent
6cded4c9
Change parameter operator == from dynamic to Object
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 @
97f5be6
...
...
@@ -81,7 +81,7 @@ mixin RxObjectMixin<T> on NotifyManager<T> {
/// values.
@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool
operator
==(
dynamic
o
)
{
bool
operator
==(
Object
o
)
{
// Todo, find a common implementation for the hashCode of different Types.
if
(
o
is
T
)
return
value
==
o
;
if
(
o
is
RxObjectMixin
<
T
>)
return
value
==
o
.
value
;
...
...
@@ -337,7 +337,7 @@ class Rxn<T> extends Rx<T?> {
Rxn
([
T
?
initial
])
:
super
(
initial
);
@override
dynamic
toJson
()
{
Object
toJson
()
{
try
{
return
(
value
as
dynamic
)?.
toJson
();
}
on
Exception
catch
(
_
)
{
...
...
Please
register
or
login
to post a comment