unwrapOrNull method

  1. @override
S? unwrapOrNull()
override

Returns the value of Ok or null. Note: This should not be used to determine is Ok or is Err, since when the success type is nullable, a null is ambiguous in meaning.

Implementation

@override
S? unwrapOrNull() => null;