when<ReturnType> method

  1. @override
ReturnType when<ReturnType>(
  1. SuccessCallback<S, E, ReturnType> onSuccess,
  2. FailureCallback<S, E, ReturnType> onFailure
)

Implementation

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