when<ReturnType> method
ReturnType
when<ReturnType>(
- SuccessCallback<
S, E, ReturnType> onSuccess, - FailureCallback<
S, E, ReturnType> onFailure
Implementation
@override
ReturnType when<ReturnType>(
SuccessCallback<S, E, ReturnType> onSuccess,
FailureCallback<S, E, ReturnType> onFailure,
) {
return onFailure(error);
}