isExitDefect<A extends Object, E extends Object> function
Match an ExitDefect with optional defect matching.
Implementation
Matcher isExitDefect<A extends Object, E extends Object>([
Object? defect = _unspecified,
]) {
return _TypedExitMatcher<A, E>(
kind: _ExitKind.defect,
payload: identical(defect, _unspecified) ? null : wrapMatcher(defect),
);
}