setOrNull method

T? setOrNull(
  1. T value
)

Sets the contents of the cell to value. Returns null if the value is already set.

Implementation

T? setOrNull(T value) {
  if (_isSet) {
    return null;
  }
  _val = value;
  _isSet = true;
  return _val;
}