ComputedState<T> class
final
- Available Extensions
Constructors
-
ComputedState(T value, {required ObservableComputed delegatedBy, Equals<
T> ? equals})
Properties
- debugLabel ↔ String?
-
getter/setter pairinherited
- delegatedBy → ObservableComputed
-
final
-
equals
→ Equals<
T> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setterinherited
-
observers
→ UnmodifiableSetView<
ObserverMixin> -
latefinalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
getter/setter pairinherited
Methods
-
addObserver(
ObserverMixin observer) → void -
inherited
-
addPlugin(
StatePlugin< T> plugin) → void -
inherited
-
asStream(
) → Stream< T> -
Stream of Observable's values.
Emits whenever value is set
inherited
-
dispose(
) → void -
inherited
-
listen(
ValueChanged< T> onChanged) → Disposer -
inherited
-
listenSync(
ValueChanged< T> onChanged) → Disposer -
onChanged
is called before any other observer is notified. This is useful if you want to update other RootObservableStates in the same ObservableContext phase. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onValueSet(
T from, T to) → void -
removeObserver(
ObserverMixin observer) → void -
inherited
-
setValue(
T value) → bool -
bool indicates if value was actually set,
i.e. not discarded by
equals
inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited