RxObject<T> class
abstract
An object that will properly emit updates when calling notify
Useful for creating reactive versions of objects you don't control. If an object is in your control, consider making fields that need to be updated reactive instead.
- Inheritance
- Available extensions
Constructors
- RxObject(T value)
- Create a reactive object
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
Stream of value changes
no setterinherited
- unregisteredValue → T
-
Read the current value without calling register
no setterinherited
- value ↔ T
-
Get the current value and register with the current zone's RxRegistrar
getter/setter pairoverride
Methods
-
copyValue(
) → T - Copy the value for update emission
-
internalSetValue(
T value) → void -
Internal setter for
_value
. Should only be used in Rx extensions and never externally. Does not notify. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void -
Notify listeners with the current value
override
-
notifyIfChanged<
U> (U transform()) → U -
Notify if
transform
changed the value such that shouldNotify returns true -
notifyWithValue(
T value) → void -
Notify listeners with the given value
inherited
-
persist<
I> (String key, {FastRxPersistenceInterface? store, PersistenceConverter< T, I> ? converter}) → void -
Available on RxValue<
Persist the value though theT> , provided by the RxPersistenceExtension extensionstore
-
register(
) → void -
Register with the current zone's RxRegistrar if it exists
inherited
-
run(
RxAction action, {bool notify = true}) → bool -
Run
action
with registration and notifications disabled. Will notify afteraction
is completed ifnotify
is true and the child implementation decides a notification should be sent.override -
shouldNotify(
T oldValue) → bool - Check if the value has changed
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Returns true if both RxValue values are equal
inherited