valueOrNull property
T?
get
valueOrNull
Returns the converted value when successful, or null on failure.
This is a safe, exception-free accessor. Note that if T is nullable,
a null return value is ambiguous - use isSuccess to distinguish.
Implementation
T? get valueOrNull => _error == null ? _value : null;