ifErr abstract method

Result<T> ifErr(
  1. @noFuturesAllowed void noFuturesAllowed(
    1. Err<T> err
    )
)

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

Implementation

Result<T> ifErr(@noFuturesAllowed void Function(Err<T> err) noFuturesAllowed);