setCell method

void setCell(
  1. ValueCell<T> cell
)

Set the cell to which this cell points to.

After this is called, value returns the value of cell and the observers of this are notified when the value of cell changes.

NOTE: This cell must have at least one observer before calling this method, otherwise InactiveMetaCelLError is thrown.

Implementation

void setCell(ValueCell<T> cell) {
  _ensureState.refCell = cell;
}