coalesce method

MutableCell<T> coalesce(
  1. ValueCell<T> ifNull
)

Mutable version of NullCheckExtension.coalesce.

Setting the value of the returned cell sets the value of this cell.

Implementation

MutableCell<T> coalesce(ValueCell<T> ifNull) => (this as ValueCell<T?>)
    .coalesce(ifNull)
    .mutableApply((p0) => p0, (p0) {
      value = p0;
    }, key: _MutableNullCheckCoalesceKey(this, ifNull));