valueOrNull property
The contained value if this is an Ok, or null otherwise.
Examples
// prints "2"
print(const Ok<int, String>(2).valueOrNull);
// prints "null"
print(const Err<int, String>('error').valueOrNull);
Implementation
@override
@useResult
T get valueOrNull => value;