toInvalidResult method

Result toInvalidResult()

Convenient method to convert the expectation to an invalid result.

Implementation

Result toInvalidResult() => Result.invalid(value, expectation: this);