Showing
1 changed file
with
2 additions
and
2 deletions
@@ -81,7 +81,7 @@ mixin RxObjectMixin<T> on NotifyManager<T> { | @@ -81,7 +81,7 @@ mixin RxObjectMixin<T> on NotifyManager<T> { | ||
81 | /// values. | 81 | /// values. |
82 | @override | 82 | @override |
83 | // ignore: avoid_equals_and_hash_code_on_mutable_classes | 83 | // ignore: avoid_equals_and_hash_code_on_mutable_classes |
84 | - bool operator ==(dynamic o) { | 84 | + bool operator ==(Object o) { |
85 | // Todo, find a common implementation for the hashCode of different Types. | 85 | // Todo, find a common implementation for the hashCode of different Types. |
86 | if (o is T) return value == o; | 86 | if (o is T) return value == o; |
87 | if (o is RxObjectMixin<T>) return value == o.value; | 87 | if (o is RxObjectMixin<T>) return value == o.value; |
@@ -337,7 +337,7 @@ class Rxn<T> extends Rx<T?> { | @@ -337,7 +337,7 @@ class Rxn<T> extends Rx<T?> { | ||
337 | Rxn([T? initial]) : super(initial); | 337 | Rxn([T? initial]) : super(initial); |
338 | 338 | ||
339 | @override | 339 | @override |
340 | - dynamic toJson() { | 340 | + Object toJson() { |
341 | try { | 341 | try { |
342 | return (value as dynamic)?.toJson(); | 342 | return (value as dynamic)?.toJson(); |
343 | } on Exception catch (_) { | 343 | } on Exception catch (_) { |
-
Please register or login to post a comment