ifErr abstract method

Result<T> ifErr(
  1. @noFutures void noFutures(
    1. Result<T> self,
    2. Err<T> err
    )
)

Performs a side-effect with the contained error if this is an Err.

Implementation

Result<T> ifErr(
  @noFutures void Function(Result<T> self, Err<T> err) noFutures,
);