getOrElse method
Returns the encapsulated value if this instance represents Success
or the result of onFailure
function for
the encapsulated a Failure
value.
Implementation
@override
S getOrElse(S Function(F failure) onFailure) {
return _success;
}