Computed<T> class

A Computed class that computes a value based on the values of one or more Reactive instances.

The computed value is updated whenever any of the source Reactive instances change, and the change is propagated to its listeners.

Constructors

Computed(List<Reactive> _sources, T _compute(List<Reactive>))
Constructs a new Computed instance.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<Snapshot<T>>
Returns a stream of snapshots containing the computed value. New snapshots are emitted whenever the computed value changes.
no setter
value → T
Returns the current computed value.
no setter

Methods

dispose() → void
Disposes of the internal stream controller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override