StoreCell<T> constructor

StoreCell<T>(
  1. ValueCell<T> argCell, {
  2. bool changesOnly = false,
  3. dynamic key,
})

Create a StoreCell which observes and saves the value of argCell

If changesOnly is true, the returned cell only notifies its observers if its value has actually changed.

The returned cell is identified by key if it is non-null. Otherwise if key is null, the returned cell has a key which uniquely identifies the StoreCell for a given argCell.

Implementation

StoreCell(this.argCell, {
  this.changesOnly = false,
  dynamic key,
}) : super(key: key ?? _StoreCellKey(argCell));