recover<R extends Object> method
Returns the encapsulated Result
of the given transform function
applied to the encapsulated a Failure
or the original
encapsulated value if it is success.
Implementation
@override
Result<S, R> recover<R extends Object>(
Result<S, R> Function(F failure) onFailure,
) {
return Success(_success);
}