onFailure abstract method
Performs the given action on the encapsulated Throwable exception if this instance represents failure. Returns the original Result unchanged.
Implementation
Result<S, F> onFailure(
void Function(F failure) onFailure,
);
Performs the given action on the encapsulated Throwable exception if this instance represents failure. Returns the original Result unchanged.
Result<S, F> onFailure(
void Function(F failure) onFailure,
);