whenError<R> abstract method

R? whenError<R>(
  1. R whenError(
    1. E error
    )
)

Execute whenError if the Result is an error.

Implementation

R? whenError<R>(
  R Function(E error) whenError,
);