getOrElse abstract method
S
getOrElse(
- S onFailure(
- 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);