ObservableView<T> class
abstract
A read-only 'view' of something. Allows getting the current value and listening for values and changes.
- Inheritance
-
- Object
- ObserveAware<
T> - ChangeAware<
T> - ObservableView
- Implemented types
- Implementers
Constructors
-
ObservableView.fromStream(Stream<
T> stream, {T? initialValue}) -
An ObservableView of the most-recently-published value on the given
stream
.factory
Properties
-
changes
→ Stream<
Change< T> > -
Provides a stream of change pairs.
no setterinherited
-
firstNonNull
→ Future<
T> -
Blocks until value is non-null, and then completes with that value.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nonNullValues
→ Stream<
T> -
A Stream of all non-null values on this view, including the current
value at the time the stream is listened to (if it's non-null).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
Provides a stream of object values when the internals change.
no setterinherited
- value → T
-
no setter
-
values
→ Stream<
T> -
A Stream of all values on this view, including the current value at
the time the stream is listened to.
no setter
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
map<
M> (M mapper(T)) → ObservableView< M> -
Returns a new ObservableView which is created by lazily calling
mapper
on this view's value, stream, and changes properties. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited