MutableCellView<T> constructor
MutableCellView<T> ({})
Create a lightweight mutable computed cell.
The created cell has computation function compute
of the argument cells
arguments
and reverse computation function reverse
.
The cells in arguments
do not have to be MutableCells but in general
they should either be the same cells that are set in reverse
or immediate
successors of them.
A key
can also be supplied that uniquely identifies this cell
CAUTION: This cell has slightly different semantics from
MutableComputeCell. Its value is always recomputed from the argument
cells, even after it is set explicitly. Thus, it is even more important
that reverse
assigns values to the argument cells that will result in
the same value being computed as the value that was assigned.
Implementation
MutableCellView({
required super.arguments,
required super.compute,
required this.reverse,
super.key,
});