MutableCell<T> class abstract

Interface for a ValueCell of which the value property can be set explicitly

Inheritance
Available extensions

Constructors

MutableCell(T value, {dynamic key, bool reset = false})
Create a mutable cell with its value initialized to value.
factory
MutableCell.computed(T compute(), void reverse(T value), {bool changesOnly = false, dynamic key})
Create a computational cell which can also have its value set directly.
factory

Properties

equalityCellFactory → EqualityCellFactory
Return a factory for creating equality and inequality comparison cells.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
The cell's value
getter/setter pairinherited-getter

Methods

addObserver(CellObserver observer) → void
Register an observer of the cell to be called when the cell's value changes.
inherited
call() → T
Retrieve the value of the cell.
inherited
eq<U>(ValueCell<U> other) ValueCell<bool>
Returns a new ValueCell which compares the value of this cell to another cell for equality.
inherited
neq<U>(ValueCell<U> other) ValueCell<bool>
Returns a new ValueCell which compares the value of this cell to another cell for inequality.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe() → void
Track this cell as an argument of the current compute/watch function.
inherited
removeObserver(CellObserver observer) → void
Remove an observer that was previously registered with addObserver.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

batch(void fn()) → void
Set the value of multiple MutableCell's simultaneously.