unwrapErrOrElse abstract method

F unwrapErrOrElse(
  1. F onOk(
    1. S ok
    )
)

Returns the encapsulated value if this instance represents Err or the result of onError function for the encapsulated a Err value.

Implementation

F unwrapErrOrElse(F Function(S ok) onOk);