unwrapOrNull method
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;
Unwraps a result, yielding the content of an Ok
.
If the value is an Err
, returns null
instead of throwing an exception.
@override
T? unwrapOrNull() => null;