recover abstract method
Recovers from a failure by providing a new value.
onRecover
is the function that provides a new value in case the result is a failure.
Implementation
Success<T> recover(T Function(ErrorMessage errorMessage) onRecover);
Recovers from a failure by providing a new value.
onRecover
is the function that provides a new value in case the result is a failure.
Success<T> recover(T Function(ErrorMessage errorMessage) onRecover);