RxObjectMixin<T> mixin
global object that registers against GState and Obx, and allows the
reactivity
of those Widgets and Rx values.
- Superclass constraints
- GListenable<
T>
- GListenable<
- Mixin applications
Properties
- firstRebuild ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDisposed → bool
-
no setterinherited
- listenersLength → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentToStream ↔ bool
-
getter/setter pair
-
stream
→ Stream<
T> -
no setterinherited
- string → String
-
Same as
toString()but using a getter.no setter -
subject
→ StreamController<
T> -
no setterinherited
- value ↔ T
-
The current value of the object. When the value changes, the callbacks
registered with addListener will be invoked.
getter/setter pairinherited-getteroverride-setter
Methods
-
addListener(
StateUpdateCallback listener) → Disposer -
Register a closure to be called when the object notifies its listeners.
inherited
-
bindStream(
Stream< T> stream) → void -
Binds an existing
Stream<T>to this Rx -
call(
[T? v]) → T -
Makes this Rx looks like a function so you can update a new
value using
rx(someOtherValue). Practical to assign the Rx directly to some Widget that has a signature ::onChange( value )override -
close(
) → void -
Close the Rx Variable
inherited
-
containsListener(
StateUpdateCallback listener) → bool -
inherited
-
dispose(
) → void -
inherited
-
listen(
ValueChanged< T> ? onData, {Function? onError, VoidCallback? onDone, bool? cancelOnError}) → StreamSubscription<T> -
Calls
callbackwith current value, when the value changes.inherited -
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
onInitor anywhere else during the build process. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void -
inherited
-
removeListener(
StateUpdateCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
reportAdd(
StateUpdateCallback disposer) → void -
inherited
-
reportRead(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
override