RxValue<T> class

Interface of an observable value of type T

Implementers

Constructors

RxValue({T initial})
factory
RxValue.proxy({ValueGetter<T> getterProxy})
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onChange Stream<Change<T>>
Stream of record of Changes of value
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value ↔ T
Get current value
read / write
values Stream<T>
Stream of changes of value
read-only

Methods

bind(RxValue<T> other) → void
Binds other to this
bindOrSet(dynamic other) → void
Binds if other is Stream or RxValue of type T. Sets if other is instance of T
bindStream(Stream<T> stream) → void
Binds the stream to this
listen(ValueCallback<T> callback) StreamSubscription<T>
Calls callback with current value, when the value changes.
map<R>(R mapper(T data)) Stream<R>
Maps the changes into a Stream of R
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setCast(dynamic val) → void
Cast val to T before setting
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited