CellWatcher constructor

CellWatcher({
  1. dynamic key,
})

Create a CellWatcher identified by key.

If key is not null and a CellWatcher identified by key has already been created, and has not been stopped, this CellWatcher object references the same watch function.

Implementation

CellWatcher({key}) {
  this.key = key ?? AutoKey.autoWatchKey(this);
  _observer = _CellWatchTable.getObserver(this.key, _CellWatchObserver.new);
}