unwrapOrNull method

  1. @override
T? unwrapOrNull()
override

Unwraps a result, yielding the content of an Ok.

If the value is an Err, returns null instead of throwing an exception.

Implementation

@override
T? unwrapOrNull() => null;