Rx<T> class
Rx
Constructors
- Rx(T initial)
-
Constructor: With
initial
as initial value. - Rx.withPub(T initial, Pub pub)
-
Constructor: With Pub
pub
as the model.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ob → T
-
Notify the host to rebuild related consumer widget and then return
the underlying object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
rxAspects
→ Set<
Object> -
finalinherited
- value ↔ dynamic
-
Getter:
getter/setter pairinherited
Methods
-
addRxAspects(
[Object? aspects]) → void -
Add
aspects
to the Rx aspects. param aspects: Iterable: addaspects
to the rx aspects null: broadcast to the model RxImpl: add(aspects as RxImpl).rxAspects
to the rx aspects : addaspects
to the rx aspectsinherited -
call(
T v) → T -
RxVar(newVal): set new value to the Rx underlying value.
dart:call() works in the same way as operator()
inherited
-
clearRxAspects(
) → void -
Clear all the Rx aspects.
inherited
-
consume(
Widget create(), {Key? key}) → Widget -
Create a consumer widget and connect with the watched variable.
The consumer widget will rebuild whenever the watched variable updates.
inherited
-
copyInfo(
RxImpl< T> other) → void -
Copy info from another Rx variable.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void -
Synonym of
publishRxAspects()
.inherited -
publishRxAspects(
) → void -
Publish Rx aspects to the host.
inherited
-
removeRxAspects(
[Object? aspects]) → void -
Remove
aspects
from the Rx aspects. param aspects: Iterable: removeaspects
from the rx aspects null: don't broadcast to the model RxImpl: remove(aspects as RxImpl).rxAspects
from the rx aspects : removeaspects
from the rx aspectsinherited -
retainRxAspects(
Object aspects) → void -
Retain
aspects
in the Rx aspects. param aspects: Iterable: retain rx aspects in theaspects
RxImpl: retain rx aspects in the(aspects as RxImpl).rxAspects
: retain rx aspects in theaspects
inherited -
toString(
) → String -
A string representation of this object.
inherited
-
touch(
) → void -
Activate automatic aspect management for this watched variable.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited