getOrNull method

  1. @override
T? getOrNull()
override

Gets the underlying value, returns null if the cell is empty

Implementation

@override
T? getOrNull() {
  final val = _cache[this] as (T,)?;
  if (val == null) {
    return null;
  }
  return val.$1;
}