RxObjectMixin<T> mixin Null safety

global object that registers against GetX and Obx, and allows the reactivity of those Widgets and Rx values.

Superclass Constraints
Mixin Applications


firstRebuild bool
read / write
string String
Same as toString() but using a getter.
hashCode int
The hash code for this object. [...]
read-only, override
value ↔ T
Returns the current value
read / write
stream Stream<T>
subject GetStream<T>
read / write, inherited
canUpdate bool
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


refresh() → void
Makes a direct update of value adding it to the Stream useful when you make use of Rx for custom Types to referesh your UI. [...]
call([T? v]) → T
updates the value to null and adds it to the Stream. Even with null-safety coming, is still an important feature to support, as call() doesn't accept null values. For instance, InputDecoration.errorText has to be null to not show the "error state". [...]
toString() String
A string representation of this object. [...]
toJson() → dynamic
Returns the json representation of value.
listenAndPump(void onData(T event), {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<T>
Returns a StreamSubscription similar to listen, but with the added benefit that it primes the stream with the current value, rather than waiting for the next value. This should not be called in onInit or anywhere else during the build process.
bindStream(Stream<T> stream) → void
Binds an existing Stream<T> to this Rx
addListener(GetStream<T> rxGetx) → void
This is an internal method. Subscribe to changes on the inner stream.
listen(void onData(T), {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<T>
close() → void
Closes the subscriptions for this Rx, releasing the resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]


operator ==(Object o) bool
This equality override works for _RxImpl instances and the internal values.