isErrAnd method

Future<bool> isErrAnd(
  1. FutureOr<bool> fn(
    1. F
    )
)

Implementation

Future<bool> isErrAnd(FutureOr<bool> Function(F) fn) {
  return then((result) {
    if (result.isErr()) {
      return fn(result.unwrapErr());
    } else {
      return false;
    }
  });
}