valueOrNull property

T? get valueOrNull

The value if present, otherwise null.

Implementation

T? get valueOrNull => _isPresent ? _value : null;