roi peker

Changed _RxImpl assign operator to >>

Closes #558
@@ -23,7 +23,7 @@ class _RxImpl<T> implements RxInterface<T> { @@ -23,7 +23,7 @@ class _RxImpl<T> implements RxInterface<T> {
23 /// ``` 23 /// ```
24 /// 24 ///
25 /// WARNING: still WIP, needs testing! 25 /// WARNING: still WIP, needs testing!
26 - _RxImpl<T> operator >>(T val) { 26 + _RxImpl<T> operator <<(T val) {
27 subject.add(value = val); 27 subject.add(value = val);
28 return this; 28 return this;
29 } 29 }
@@ -289,6 +289,8 @@ class Rx<T> extends _RxImpl<T> { @@ -289,6 +289,8 @@ class Rx<T> extends _RxImpl<T> {
289 _value = initial; 289 _value = initial;
290 } 290 }
291 291
  292 + // TODO: Look for a way to throw the Exception with proper details when the
  293 + // value [T] doesn't implement toJson().
292 @override 294 @override
293 dynamic toJson() => (value as dynamic)?.toJson(); 295 dynamic toJson() => (value as dynamic)?.toJson();
294 } 296 }