isErrorAnd method

bool isErrorAnd(
  1. bool f(
    1. E
    )
)

isErrorAnd returns true if Results represents an error and the additional code of f returns true.

Implementation

bool isErrorAnd(bool Function(E) f) => isError() ? f(_error as E) : false;