isRight top-level constant
Matcher
const isRight
Matches if the object is of type Right.
Example :
The following test is successfull if and only if either.isRight()
returns true
Either<Failure, String> either = fetchData();
expect(either, isRight); // Passes the test if `either.isRight()` returns true
Implementation
const Matcher isRight = _IsRight();