Computed<T> class
A memoized, derived reactive value for Pillar S (Sint.computed).
Automatically tracks any Rx or ListNotifier sources read inside
_compute using SINT's incremental subscription reconciliation engine,
and only notifies downstream listeners (Obx, ever, stream, or other
Computed instances) when the recomputed value actually changes (!=).
- Inheritance
-
- Object
- Listenable
- ListNotifier
- SintListenable<
T> - Computed
Constructors
- Computed(T compute())
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setterinherited
- listenersLength → int
-
no setterinherited
- peek → T
-
Reads the current value without registering a reactive dependency in an
enclosing
ObxorComputedscope.no setteroverride - rawValue ↔ T
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
no setterinherited
-
subject
→ StreamController<
T> -
no setterinherited
- value ↔ T
-
The current value of the object.
getter/setter pairoverride
Methods
-
addListener(
SintStateUpdate listener) → Disposer -
Register a closure to be called when the object notifies its listeners.
inherited
-
addListenerId(
Object? key, SintStateUpdate listener) → Disposer -
inherited
-
call(
[T? v]) → T? -
override
-
close(
) → void -
Close the Rx Variable
inherited
-
containsListener(
SintStateUpdate listener) → bool -
inherited
-
dispose(
) → void -
override
-
listen(
void onData(T)?, {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< T> -
Calls
callbackwith current value, when the value changes.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void -
inherited
-
refreshGroup(
Object id) → void -
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
removeListenerId(
Object id, VoidCallback listener) → void -
inherited
-
reportAdd(
VoidCallback disposer) → void -
inherited
-
reportRead(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited