matchErr<R> method

Future<R?> matchErr<R>(
  1. R errop(
    1. E
    )
)

Invokes the errop if the result is Err, otherwise does nothing.

Implementation

Future<R?> matchErr<R>(R Function(E) errop) =>
    then((result) => result.matchErr(errop));