ConstantCell<T> class

A cell with a constant value.

This class implements the ValueCell interface but its observers are never called since the cell's value does not change.

ConstantCell's compare == if their value's are ==.

Inheritance
Available extensions

Constructors

ConstantCell(T _value)
const

Properties

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

Methods

addObserver(CellObserver observer) → void
Register an observer of the cell to be called when the cell's value changes.
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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