valueOrNull property
T?
get
valueOrNull
The value if present, otherwise null.
Implementation
T? get valueOrNull => _isPresent ? _value : null;
The value if present, otherwise null.
T? get valueOrNull => _isPresent ? _value : null;