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

Properties

firstRebuild bool
read / write
string String
Same as toString() but using a getter.
read-only
hashCode int
The hash code for this object. [...]
read-only, override
value ↔ T
Returns the current value
read / write
stream Stream<T?>
read-only
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

Methods

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. [...]
override
toJson() → dynamic
Returns the json representation of value.
bindStream(Stream<T> stream) → void
Binds an existing Stream<T> to this Rx to keep the values in sync. You can bind multiple sources to update the value. Closing the subscription will happen automatically when the observer Widget (GetX or Obx) gets unmounted from the Widget tree.
addListener(GetStream<T> rxGetx) → void
This is an internal method. Subscribe to changes on the inner stream.
inherited
listen(void onData(T), {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<T>
inherited
close() → void
Closes the subscriptions for this Rx, releasing the resources.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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