getOrElse abstract method

S getOrElse(
  1. S onFailure(
    1. F failure
    )
)

Returns the encapsulated value if this instance represents Success or the result of onFailure function for the encapsulated a Failure value.

Implementation

S getOrElse(S Function(F failure) onFailure);