cellList property

ValueCell<Iterable<ValueCell<T>>> get cellList

Returns a cell which wraps the elements of the List held in this cell in ValueCells.

The value of the returned cell is a list of cells, where each cell accesses the element at the corresponding index of the list.

The returned cell is only recomputed when the length of the list held in this cell changes. It is not recomputed when the individual elements change.

A keyed cell is returned so that all accesses to this property, for a given List cell, will return an equivalent cell.

Implementation

ValueCell<Iterable<ValueCell<T>>> get cellList =>
    length.apply((length) => Iterable.generate(length, (i) => this[i.cell]),
      key: _ListPropKey(this, #cells)
    );