notNull property

ValueCell<T> get notNull

A cell that is guaranteed to hold a non-null value.

If the value of this cell is null, accessing the value of the notNull cell results in a NullCellError exception being thrown.

Implementation

ValueCell<T> get notNull => apply((value) => value ?? (throw NullCellError()),
  key: _NullCheckExtensionKey(this)
);