Skip to content

isInvalid

Matcher isInvalid([Object? expected])

Returns a Matcher that matches an Invalid value.

If matcher is provided, the matched error inside Invalid must also satisfy it. If omitted, any Invalid value matches.