ObservableValue<T> class
abstract
Simple observable that notifies others about value changes. Actual value is stored within this class.
- Implemented types
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalData ↔ dynamic
-
Serves for internal data or marker.
Exposed to public API due to usage as custom 'client' data.
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
Current value of this observable.
no setter
Methods
-
cancel(
ControlSubscription< T> subscription) → void -
Cancels given
subscription
.inherited -
cast<
U> () → ObservableValue< U> -
Available on ObservableValue, provided by the ObservableValuext extension
Cast this observable. -
dispose(
) → void -
Used to clear and dispose object.
Unsubscribe and close all sources. Prepare object for GC.
Can be called multiple times!
inherited
-
disposeWith(
DisposeObserver observer) → void -
Available on Disposable, provided by the DisposableExt extension
Register for dispose with givenobserver
. -
listen(
VoidCallback action) → ControlSubscription< T> -
Subscribe to listen future changes.
Returns ControlSubscription for later connection close.
override
-
merge(
Object other) → ObservableGroup -
Available on ObservableBase, provided by the ObservableBaseExt extension
Creates new group, that listens to both observables. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
ValueCallback< T?> action, {bool current = true, dynamic args}) → ControlSubscription<T> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited