unwrapOrElse method
Unwraps a result, yielding the content of an Ok
. If the value is an
Err
then it calls op
with its value.
Implementation
@override
T unwrapOrElse(T Function(E) op) => op(_err);
Unwraps a result, yielding the content of an Ok
. If the value is an
Err
then it calls op
with its value.
@override
T unwrapOrElse(T Function(E) op) => op(_err);