onFailure method

  1. @override
Result<S, F> onFailure(
  1. void onFailure(
    1. F failure
    )
)
override

Performs the given action on the encapsulated Throwable exception if this instance represents failure. Returns the original Result unchanged.

Implementation

@override
Result<S, F> onFailure(void Function(F failure) onFailure) {
  return this;
}